Add guard at conn.kind_of?(::ActiveRecord::Turntable::ConnectionProxy)