kms_seo 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 108eacfbb67d758306993613211ecf4627402d1e
4
- data.tar.gz: cbec80ab38fa20b36426c4fa5b996cea3bc7137c
3
+ metadata.gz: 1a281bc9d4b55fe13bf041790079e3aa4c267072
4
+ data.tar.gz: 7824126b013a5d4b6ddab355c3b304ab42c09aba
5
5
  SHA512:
6
- metadata.gz: 2c659111e84f299f9a6547fa087ef36def00694a1dcb40c5eef945ebb0fe33e4d37641bc617f1901331463b41ed06275232313ef66b83a6e843d7223003b787f
7
- data.tar.gz: 94a680c49449f689dad56c504b1c887a8de5ada4a7ccce26218ac4cdd20fb641feab9114da38864136604c19d4806ce8007d52933c6a83b38da35404770badfe
6
+ metadata.gz: 764681d438a7782fd559ce405151dfcc5715fd30a4c1251f455d5df422faffe065bc5dab4570d7855ecffac177e7acce36d56f2d09756f998271f6190215d5d8
7
+ data.tar.gz: 52d191c3564b41349adfd874fb6a1f3ef789c5f98268dee772648efb4a76dcdd4274239e7be6c52be6ed1ab450b7ffbb7e4d2cc0e0800ee61d07cdf61e3a64d4
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
- ## KMS SEO
1
+ ## APIQ SEO
2
+ [![Build Status](https://travis-ci.org/apiqcms/kms_seo.svg?branch=master)](https://travis-ci.org/apiqcms/kms_seo)
2
3
 
3
- Adds SEO support to KMS: additional fields for Pages (meta tags, h1), sitemap.xml generating, redirects, special {{ seo }} variable.
4
+ Adds SEO support to APIQ: additional fields for Pages (meta tags, h1), sitemap.xml generating, redirects, special {{ seo }} variable.
4
5
 
5
6
  Use "seo" object for accessing SEO settings for page or object.
6
7
 
@@ -36,7 +37,7 @@ Also, this adds sitemap generation support (at /sitemap.xml)
36
37
 
37
38
  bundle exec rails assets:precompile
38
39
 
39
- 6. Restart KMS instance
40
+ 6. Restart APIQ instance
40
41
 
41
42
  ## Contributing
42
43
 
@@ -0,0 +1,35 @@
1
+ h4 = I18n.t("liquor_help.variables_title")
2
+ p
3
+ ul
4
+ li
5
+ var seo
6
+ p
7
+ span = I18n.t('liquor_help.variables.seo.main_description')
8
+ p
9
+ code ng-non-bindable=''
10
+ | <title>{{ seo.title }}</title>
11
+ br
12
+ | <meta name="keywords" content="{{ seo.keywords }}">
13
+ br
14
+ | <meta name="description" content="{{ seo.description }}">
15
+ br
16
+ | ...
17
+ br
18
+ | <h1>{{ seo.h1 }}</h1>
19
+ p
20
+ table.table
21
+ tr
22
+ th #{ I18n.t('liquor_help.property') } seo
23
+ th = I18n.t('liquor_help.description')
24
+ tr
25
+ td title
26
+ td = I18n.t('liquor_help.variables.seo.properties.title')
27
+ tr
28
+ td keywords
29
+ td = I18n.t('liquor_help.variables.seo.properties.keywords')
30
+ tr
31
+ td description
32
+ td = I18n.t('liquor_help.variables.seo.properties.description')
33
+ tr
34
+ td h1
35
+ td = I18n.t('liquor_help.variables.seo.properties.h1')
@@ -1,3 +1,14 @@
1
1
  Kms::PagesController.class_eval do
2
2
  wrap_parameters :page, include: [:title, :slug, :content, :published, :template_id, :templatable,:templatable_type,:position,:hidden, :parent_id, :seo_title, :seo_keywords, :seo_description, :seo_h1]
3
+
4
+ protected
5
+
6
+ def page_params
7
+ params.require(:page).permit(
8
+ :title, :slug, :content,
9
+ :published, :hidden, :template_id, :parent_id,
10
+ :position, :templatable, :templatable_type,
11
+ :seo_title, :seo_keywords, :seo_description, :seo_h1
12
+ )
13
+ end
3
14
  end
@@ -0,0 +1,4 @@
1
+ Kms::PageSerializer.class_eval do
2
+ attributes :id, :title, :slug, :template_id, :parent_id, :content,
3
+ :published, :hidden, :templatable, :templatable_type, :seo_title, :seo_keywords, :seo_description, :seo_h1
4
+ end
@@ -2,7 +2,7 @@ Kms::ExternalsRegistry.register(:seo) do |request, controller|
2
2
  page = Kms::ExternalsRegistry.externals[:page].call(request, controller)
3
3
  return nil unless page
4
4
  if page.source.templatable?
5
- item = page.source.fetch_item!(File.basename(request.params[:path]))
5
+ item = page.source.fetch_item(File.basename(request.params[:path]))
6
6
  Kms::SeoWrapper.new(item).to_drop
7
7
  else
8
8
  Kms::SeoWrapper.new(page.source).to_drop
@@ -0,0 +1 @@
1
+ Kms::HelpService.register_templates Kms::Seo::Engine, 'help/seo_variables.html'
@@ -2,6 +2,15 @@ en:
2
2
  seo: "SEO"
3
3
  add_redirect: "Add Redirect"
4
4
  robots_txt: "Robots.txt"
5
+ liquor_help:
6
+ variables:
7
+ seo:
8
+ main_description: 'Object "seo" gives access to SEO properties of current page (or object). You can specify these properties in "SEO" section while editing your Page. If you have a Templatable Page (with enabled "Use as object template" option) and APIQ Models installed, you would probably want to have "title", "description" and etc. specified for each Model entry. And APIQ SEO still works for this: just follow a convention of adding special text fields to your Model: "seo_title", "seo_description", "seo_keywords" and "seo_h1" - and "seo" object for item/entry page will show you a content of these fields'
9
+ properties:
10
+ title: "Content for <title> tag"
11
+ keywords: "Content for <meta name='keywords'... tag"
12
+ description: "Content for <meta name='description'... tag"
13
+ h1: "Content for page main header (h1)"
5
14
  activerecord:
6
15
  models:
7
16
  kms/redirect:
@@ -2,6 +2,15 @@ ru:
2
2
  seo: "SEO"
3
3
  add_redirect: "Добавить редирект"
4
4
  robots_txt: "Robots.txt"
5
+ liquor_help:
6
+ variables:
7
+ seo:
8
+ main_description: 'Объект "seo" предоставляет доступ к SEO-свойствам текущей страницы (или объекта). Эти свойства вы можете задать при редактировании страницы в разделе "SEO". Если у вас есть Страница-шаблон (со включенной опцией "Использовать как шаблон" и выбранным объектом) и установлено расширение APIQ Models, вы вероятно хотели бы иметь "title", "description" и остальные свойства для каждого элемента Модели. И APIQ SEO учитывает это: просто следуйте соглашению добавив текстовые поля в вашу Модель: "seo_title", "seo_description", "seo_keywords" and "seo_h1" - и объект "seo" для страницы элемента Модели отобразит содержимое этих полей'
9
+ properties:
10
+ title: "Содержимое тэга <title>"
11
+ keywords: "Содержимое тэга <meta name='keywords'..."
12
+ description: "Содержимое тэга <meta name='description'..."
13
+ h1: "Содержимое основного заголовка страницы (h1)"
5
14
  activerecord:
6
15
  models:
7
16
  kms/redirect:
@@ -11,5 +11,9 @@ module KmsSeo
11
11
  def insert_javascript
12
12
  append_file "app/assets/javascripts/application.js", "//= require kms_seo/application\n"
13
13
  end
14
+
15
+ def remove_robots_txt
16
+ remove_file 'public/robots.txt'
17
+ end
14
18
  end
15
19
  end
@@ -1,5 +1,5 @@
1
1
  module Kms
2
2
  module Seo
3
- VERSION = "0.2.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ module Kms
4
4
  describe SeoWrapperDrop do
5
5
  let!(:page) { FactoryGirl.create(:page) }
6
6
 
7
- let(:request) { ActionController::TestRequest.new({host: 'example.com', "rack.input" => "wtf"}, ActionController::TestRequest.new_session) }
7
+ let(:request) { ActionController::TestRequest.new({host: 'example.com', "rack.input" => "wtf"}, ActionController::TestRequest.new_session, Kms::Public::PagesController) }
8
8
  let(:controller) do
9
9
  controller = Kms::Public::PagesController.new
10
10
  controller.request = request
@@ -4281,3 +4281,896 @@ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
4281
4281
   (4.8ms) ROLLBACK
4282
4282
   (0.3ms) BEGIN
4283
4283
   (0.9ms) ROLLBACK
4284
+  (234.4ms) DROP DATABASE IF EXISTS "kms_test"
4285
+  (631.5ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
4286
+  (29.5ms) CREATE TABLE "kms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "content" text DEFAULT '', "published" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "template_id" integer, "ancestry" character varying, "fullpath" character varying, "templatable" boolean DEFAULT 'f', "templatable_type" character varying, "hidden" boolean DEFAULT 'f', "position" integer DEFAULT 0 NOT NULL)
4287
+  (3.7ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" USING btree ("ancestry")
4288
+  (28.4ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4289
+  (21.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4290
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4291
+  (0.3ms) BEGIN
4292
+ SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-08-08 08:13:49 UTC], ["updated_at", 2017-08-08 08:13:49 UTC]]
4293
+  (6.3ms) COMMIT
4294
+  (27.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
4295
+  (0.4ms) SELECT pg_try_advisory_lock(7029803947170562740);
4296
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
4297
+ Migrating to AddSeoFieldsToPages (20150727192219)
4298
+  (0.3ms) BEGIN
4299
+  (1.3ms) ALTER TABLE "kms_pages" ADD "seo_title" character varying
4300
+  (0.5ms) ALTER TABLE "kms_pages" ADD "seo_keywords" character varying
4301
+  (0.6ms) ALTER TABLE "kms_pages" ADD "seo_description" character varying
4302
+ SQL (2.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150727192219"]]
4303
+  (0.5ms) COMMIT
4304
+ Migrating to CreateRedirects (20150903135219)
4305
+  (0.4ms) BEGIN
4306
+  (23.8ms) CREATE TABLE "kms_redirects" ("id" serial primary key, "source" character varying, "destination" character varying, "created_at" timestamp, "updated_at" timestamp)
4307
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150903135219"]]
4308
+  (0.5ms) COMMIT
4309
+ Migrating to AddSeoH1ToPages (20170202090601)
4310
+  (11.4ms) BEGIN
4311
+  (7.2ms) ALTER TABLE "kms_pages" ADD "seo_h1" character varying
4312
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170202090601"]]
4313
+  (3.8ms) COMMIT
4314
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4315
+  (0.3ms) BEGIN
4316
+  (0.3ms) COMMIT
4317
+  (0.5ms) SELECT pg_advisory_unlock(7029803947170562740)
4318
+ Kms::Page Load (0.9ms) SELECT "kms_pages".* FROM "kms_pages"
4319
+  (0.4ms) BEGIN
4320
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4321
+  (0.7ms) SAVEPOINT active_record_1
4322
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC]]
4323
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4324
+  (0.2ms) SAVEPOINT active_record_1
4325
+ SQL (0.7ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:13:50 UTC], ["id", 1]]
4326
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4327
+ Processing by Kms::Public::RobotsController#show as TEXT
4328
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4329
+ Rendering text template
4330
+ Rendered text template (0.0ms)
4331
+ Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.4ms)
4332
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4333
+  (0.6ms) ROLLBACK
4334
+  (0.2ms) BEGIN
4335
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4336
+  (0.2ms) SAVEPOINT active_record_1
4337
+ SQL (0.5ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC]]
4338
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4339
+  (0.1ms) SAVEPOINT active_record_1
4340
+ SQL (0.6ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:13:50 UTC], ["id", 2]]
4341
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4342
+ Processing by Kms::Public::RobotsController#show as TEXT
4343
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4344
+ Rendering text template
4345
+ Rendered text template (0.0ms)
4346
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
4347
+  (0.3ms) ROLLBACK
4348
+  (0.2ms) BEGIN
4349
+  (0.4ms) SAVEPOINT active_record_1
4350
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4351
+  (0.9ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4352
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4353
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4354
+  (0.3ms) ROLLBACK
4355
+  (0.2ms) BEGIN
4356
+  (0.2ms) SAVEPOINT active_record_1
4357
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4358
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4359
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4360
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4361
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4362
+  (0.3ms) ROLLBACK
4363
+  (0.1ms) BEGIN
4364
+  (0.2ms) SAVEPOINT active_record_1
4365
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4366
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4367
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4368
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4369
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4370
+  (0.3ms) ROLLBACK
4371
+  (0.1ms) BEGIN
4372
+  (0.2ms) SAVEPOINT active_record_1
4373
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4374
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4375
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4376
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4377
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4378
+  (0.3ms) ROLLBACK
4379
+  (0.1ms) BEGIN
4380
+  (0.2ms) SAVEPOINT active_record_1
4381
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4382
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4383
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4385
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4386
+  (0.3ms) ROLLBACK
4387
+  (0.2ms) BEGIN
4388
+  (0.2ms) SAVEPOINT active_record_1
4389
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4390
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4391
+ SQL (1.1ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4392
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4393
+ Kms::Page Load (0.6ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4394
+  (0.4ms) ROLLBACK
4395
+  (0.1ms) BEGIN
4396
+  (0.2ms) ROLLBACK
4397
+  (0.1ms) BEGIN
4398
+  (0.1ms) ROLLBACK
4399
+  (0.1ms) BEGIN
4400
+  (0.1ms) ROLLBACK
4401
+  (0.2ms) BEGIN
4402
+  (0.1ms) ROLLBACK
4403
+  (0.1ms) BEGIN
4404
+  (0.2ms) SAVEPOINT active_record_1
4405
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4406
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4407
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4408
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4409
+  (0.3ms) ROLLBACK
4410
+  (0.1ms) BEGIN
4411
+  (0.2ms) SAVEPOINT active_record_1
4412
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4413
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4414
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4415
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4416
+  (0.3ms) ROLLBACK
4417
+  (0.1ms) BEGIN
4418
+  (0.3ms) SAVEPOINT active_record_1
4419
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4420
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4421
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4422
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4423
+  (0.3ms) ROLLBACK
4424
+  (0.2ms) BEGIN
4425
+  (0.2ms) SAVEPOINT active_record_1
4426
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4427
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4428
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:13:50 UTC], ["updated_at", 2017-08-08 08:13:50 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4429
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4430
+  (0.3ms) ROLLBACK
4431
+  (0.1ms) BEGIN
4432
+  (0.3ms) ROLLBACK
4433
+  (214.4ms) DROP DATABASE IF EXISTS "kms_test"
4434
+  (567.0ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
4435
+  (26.1ms) CREATE TABLE "kms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "content" text DEFAULT '', "published" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "template_id" integer, "ancestry" character varying, "fullpath" character varying, "templatable" boolean DEFAULT 'f', "templatable_type" character varying, "hidden" boolean DEFAULT 'f', "position" integer DEFAULT 0 NOT NULL)
4436
+  (2.7ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" USING btree ("ancestry")
4437
+  (7.0ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4438
+  (16.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4439
+ ActiveRecord::InternalMetadata Load (0.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4440
+  (0.3ms) BEGIN
4441
+ SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-08-08 08:27:33 UTC], ["updated_at", 2017-08-08 08:27:33 UTC]]
4442
+  (5.9ms) COMMIT
4443
+  (20.9ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
4444
+  (0.5ms) SELECT pg_try_advisory_lock(7029803947170562740);
4445
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
4446
+ Migrating to AddSeoFieldsToPages (20150727192219)
4447
+  (0.3ms) BEGIN
4448
+  (0.6ms) ALTER TABLE "kms_pages" ADD "seo_title" character varying
4449
+  (0.5ms) ALTER TABLE "kms_pages" ADD "seo_keywords" character varying
4450
+  (0.5ms) ALTER TABLE "kms_pages" ADD "seo_description" character varying
4451
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150727192219"]]
4452
+  (6.5ms) COMMIT
4453
+ Migrating to CreateRedirects (20150903135219)
4454
+  (0.3ms) BEGIN
4455
+  (16.9ms) CREATE TABLE "kms_redirects" ("id" serial primary key, "source" character varying, "destination" character varying, "created_at" timestamp, "updated_at" timestamp)
4456
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150903135219"]]
4457
+  (5.2ms) COMMIT
4458
+ Migrating to AddSeoH1ToPages (20170202090601)
4459
+  (6.1ms) BEGIN
4460
+  (0.6ms) ALTER TABLE "kms_pages" ADD "seo_h1" character varying
4461
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170202090601"]]
4462
+  (5.8ms) COMMIT
4463
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4464
+  (0.4ms) BEGIN
4465
+  (0.3ms) COMMIT
4466
+  (0.4ms) SELECT pg_advisory_unlock(7029803947170562740)
4467
+ Kms::Page Load (1.0ms) SELECT "kms_pages".* FROM "kms_pages"
4468
+  (0.4ms) BEGIN
4469
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4470
+  (0.5ms) SAVEPOINT active_record_1
4471
+ SQL (0.9ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:27:33 UTC], ["updated_at", 2017-08-08 08:27:33 UTC]]
4472
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4473
+  (0.2ms) SAVEPOINT active_record_1
4474
+ SQL (0.6ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:27:33 UTC], ["id", 1]]
4475
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4476
+ Processing by Kms::Public::RobotsController#show as TEXT
4477
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4478
+ Rendering text template
4479
+ Rendered text template (0.0ms)
4480
+ Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.5ms)
4481
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4482
+  (0.6ms) ROLLBACK
4483
+  (0.3ms) BEGIN
4484
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4485
+  (0.3ms) SAVEPOINT active_record_1
4486
+ SQL (0.5ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:27:33 UTC], ["updated_at", 2017-08-08 08:27:33 UTC]]
4487
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4488
+  (0.2ms) SAVEPOINT active_record_1
4489
+ SQL (0.5ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:27:33 UTC], ["id", 2]]
4490
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4491
+ Processing by Kms::Public::RobotsController#show as TEXT
4492
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4493
+ Rendering text template
4494
+ Rendered text template (0.0ms)
4495
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)
4496
+  (0.3ms) ROLLBACK
4497
+  (0.2ms) BEGIN
4498
+  (0.3ms) SAVEPOINT active_record_1
4499
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4500
+  (1.3ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4501
+ SQL (0.9ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:33 UTC], ["updated_at", 2017-08-08 08:27:33 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4502
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4503
+  (0.3ms) ROLLBACK
4504
+  (0.2ms) BEGIN
4505
+  (0.2ms) SAVEPOINT active_record_1
4506
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4507
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4508
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:33 UTC], ["updated_at", 2017-08-08 08:27:33 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4509
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4510
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4511
+  (0.3ms) ROLLBACK
4512
+  (0.4ms) BEGIN
4513
+  (0.3ms) SAVEPOINT active_record_1
4514
+ Kms::Page Exists (0.8ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4515
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4516
+ SQL (1.0ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:33 UTC], ["updated_at", 2017-08-08 08:27:33 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4517
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4518
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4519
+  (0.4ms) ROLLBACK
4520
+  (0.2ms) BEGIN
4521
+  (0.2ms) SAVEPOINT active_record_1
4522
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4523
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4524
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4525
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4526
+ Kms::Page Load (0.7ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4527
+  (0.3ms) ROLLBACK
4528
+  (0.2ms) BEGIN
4529
+  (0.2ms) SAVEPOINT active_record_1
4530
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4531
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4532
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4533
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4534
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4535
+  (0.3ms) ROLLBACK
4536
+  (0.2ms) BEGIN
4537
+  (0.2ms) SAVEPOINT active_record_1
4538
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4539
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4540
+ SQL (0.9ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4541
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4542
+ Kms::Page Load (0.6ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4543
+  (0.3ms) ROLLBACK
4544
+  (0.2ms) BEGIN
4545
+  (0.2ms) ROLLBACK
4546
+  (0.2ms) BEGIN
4547
+  (0.2ms) ROLLBACK
4548
+  (0.2ms) BEGIN
4549
+  (0.2ms) ROLLBACK
4550
+  (0.3ms) BEGIN
4551
+  (0.2ms) ROLLBACK
4552
+  (0.2ms) BEGIN
4553
+  (0.2ms) SAVEPOINT active_record_1
4554
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4555
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4556
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4557
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4558
+  (0.3ms) ROLLBACK
4559
+  (0.2ms) BEGIN
4560
+  (0.2ms) SAVEPOINT active_record_1
4561
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4562
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4563
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4564
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4565
+  (0.3ms) ROLLBACK
4566
+  (0.2ms) BEGIN
4567
+  (0.2ms) SAVEPOINT active_record_1
4568
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4569
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4570
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4571
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4572
+  (0.3ms) ROLLBACK
4573
+  (0.2ms) BEGIN
4574
+  (0.2ms) SAVEPOINT active_record_1
4575
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4576
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4577
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:27:34 UTC], ["updated_at", 2017-08-08 08:27:34 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4578
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4579
+  (0.3ms) ROLLBACK
4580
+  (0.2ms) BEGIN
4581
+  (0.3ms) ROLLBACK
4582
+  (196.4ms) DROP DATABASE IF EXISTS "kms_test"
4583
+  (380.7ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
4584
+  (26.9ms) CREATE TABLE "kms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "content" text DEFAULT '', "published" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "template_id" integer, "ancestry" character varying, "fullpath" character varying, "templatable" boolean DEFAULT 'f', "templatable_type" character varying, "hidden" boolean DEFAULT 'f', "position" integer DEFAULT 0 NOT NULL)
4585
+  (2.1ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" USING btree ("ancestry")
4586
+  (4.9ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4587
+  (3.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4588
+ ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4589
+  (0.4ms) BEGIN
4590
+ SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-08-08 08:29:29 UTC], ["updated_at", 2017-08-08 08:29:29 UTC]]
4591
+  (0.7ms) COMMIT
4592
+  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
4593
+  (0.6ms) SELECT pg_try_advisory_lock(7029803947170562740);
4594
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
4595
+ Migrating to AddSeoFieldsToPages (20150727192219)
4596
+  (0.3ms) BEGIN
4597
+  (5.9ms) ALTER TABLE "kms_pages" ADD "seo_title" character varying
4598
+  (0.7ms) ALTER TABLE "kms_pages" ADD "seo_keywords" character varying
4599
+  (0.7ms) ALTER TABLE "kms_pages" ADD "seo_description" character varying
4600
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150727192219"]]
4601
+  (1.3ms) COMMIT
4602
+ Migrating to CreateRedirects (20150903135219)
4603
+  (0.3ms) BEGIN
4604
+  (4.8ms) CREATE TABLE "kms_redirects" ("id" serial primary key, "source" character varying, "destination" character varying, "created_at" timestamp, "updated_at" timestamp)
4605
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150903135219"]]
4606
+  (0.7ms) COMMIT
4607
+ Migrating to AddSeoH1ToPages (20170202090601)
4608
+  (0.6ms) BEGIN
4609
+  (1.0ms) ALTER TABLE "kms_pages" ADD "seo_h1" character varying
4610
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170202090601"]]
4611
+  (0.4ms) COMMIT
4612
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4613
+  (0.3ms) BEGIN
4614
+  (0.3ms) COMMIT
4615
+  (0.4ms) SELECT pg_advisory_unlock(7029803947170562740)
4616
+ Kms::Page Load (2.4ms) SELECT "kms_pages".* FROM "kms_pages"
4617
+  (0.5ms) BEGIN
4618
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4619
+  (0.3ms) SAVEPOINT active_record_1
4620
+ SQL (2.4ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:29:29 UTC], ["updated_at", 2017-08-08 08:29:29 UTC]]
4621
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4622
+  (0.2ms) SAVEPOINT active_record_1
4623
+ SQL (0.7ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:29:29 UTC], ["id", 1]]
4624
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4625
+ Processing by Kms::Public::RobotsController#show as TEXT
4626
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4627
+ Rendering text template
4628
+ Rendered text template (0.0ms)
4629
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.4ms)
4630
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4631
+  (0.5ms) ROLLBACK
4632
+  (0.2ms) BEGIN
4633
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4634
+  (0.2ms) SAVEPOINT active_record_1
4635
+ SQL (0.5ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:29:29 UTC], ["updated_at", 2017-08-08 08:29:29 UTC]]
4636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4637
+  (0.2ms) SAVEPOINT active_record_1
4638
+ SQL (0.6ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:29:29 UTC], ["id", 2]]
4639
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4640
+ Processing by Kms::Public::RobotsController#show as TEXT
4641
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4642
+ Rendering text template
4643
+ Rendered text template (0.0ms)
4644
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.5ms)
4645
+  (0.4ms) ROLLBACK
4646
+  (0.2ms) BEGIN
4647
+  (0.4ms) SAVEPOINT active_record_1
4648
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4649
+  (1.0ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4650
+ SQL (1.0ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:29 UTC], ["updated_at", 2017-08-08 08:29:29 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4652
+  (0.3ms) ROLLBACK
4653
+  (0.2ms) BEGIN
4654
+  (0.3ms) SAVEPOINT active_record_1
4655
+ Kms::Page Exists (1.2ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4656
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4657
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4658
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4659
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4660
+  (0.3ms) ROLLBACK
4661
+  (0.2ms) BEGIN
4662
+  (0.2ms) SAVEPOINT active_record_1
4663
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4664
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4665
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4666
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4667
+ Kms::Page Load (0.7ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4668
+  (0.4ms) ROLLBACK
4669
+  (0.3ms) BEGIN
4670
+  (0.3ms) SAVEPOINT active_record_1
4671
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4672
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4673
+ SQL (0.9ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4674
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4675
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4676
+  (0.3ms) ROLLBACK
4677
+  (0.2ms) BEGIN
4678
+  (0.2ms) SAVEPOINT active_record_1
4679
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4680
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4681
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4682
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4683
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4684
+  (0.2ms) ROLLBACK
4685
+  (0.2ms) BEGIN
4686
+  (0.2ms) SAVEPOINT active_record_1
4687
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4688
+  (1.2ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4689
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4690
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4691
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4692
+  (0.3ms) ROLLBACK
4693
+  (0.2ms) BEGIN
4694
+  (0.2ms) ROLLBACK
4695
+  (0.2ms) BEGIN
4696
+  (0.2ms) ROLLBACK
4697
+  (0.2ms) BEGIN
4698
+  (0.2ms) ROLLBACK
4699
+  (0.2ms) BEGIN
4700
+  (0.2ms) ROLLBACK
4701
+  (0.2ms) BEGIN
4702
+  (0.3ms) SAVEPOINT active_record_1
4703
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4704
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4705
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4706
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4707
+  (0.3ms) ROLLBACK
4708
+  (0.2ms) BEGIN
4709
+  (0.2ms) SAVEPOINT active_record_1
4710
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4711
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4712
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4713
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4714
+  (0.3ms) ROLLBACK
4715
+  (0.3ms) BEGIN
4716
+  (0.2ms) SAVEPOINT active_record_1
4717
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4718
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4719
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4720
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4721
+  (0.3ms) ROLLBACK
4722
+  (0.2ms) BEGIN
4723
+  (0.2ms) SAVEPOINT active_record_1
4724
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4725
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4726
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:29:30 UTC], ["updated_at", 2017-08-08 08:29:30 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4727
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4728
+  (0.3ms) ROLLBACK
4729
+  (0.2ms) BEGIN
4730
+  (0.3ms) ROLLBACK
4731
+  (221.3ms) DROP DATABASE IF EXISTS "kms_test"
4732
+  (748.9ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
4733
+  (29.0ms) CREATE TABLE "kms_pages" ("id" serial primary key, "title" character varying, "slug" character varying, "content" text DEFAULT '', "published" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "template_id" integer, "ancestry" character varying, "fullpath" character varying, "templatable" boolean DEFAULT 'f', "templatable_type" character varying, "hidden" boolean DEFAULT 'f', "position" integer DEFAULT 0 NOT NULL)
4734
+  (12.7ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" USING btree ("ancestry")
4735
+  (24.7ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4736
+  (21.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4737
+ ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4738
+  (0.3ms) BEGIN
4739
+ SQL (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2017-08-08 08:46:42 UTC], ["updated_at", 2017-08-08 08:46:42 UTC]]
4740
+  (6.1ms) COMMIT
4741
+  (21.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
4742
+  (0.5ms) SELECT pg_try_advisory_lock(7029803947170562740);
4743
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations"
4744
+ Migrating to AddSeoFieldsToPages (20150727192219)
4745
+  (0.3ms) BEGIN
4746
+  (0.8ms) ALTER TABLE "kms_pages" ADD "seo_title" character varying
4747
+  (0.6ms) ALTER TABLE "kms_pages" ADD "seo_keywords" character varying
4748
+  (0.5ms) ALTER TABLE "kms_pages" ADD "seo_description" character varying
4749
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150727192219"]]
4750
+  (5.5ms) COMMIT
4751
+ Migrating to CreateRedirects (20150903135219)
4752
+  (0.3ms) BEGIN
4753
+  (16.2ms) CREATE TABLE "kms_redirects" ("id" serial primary key, "source" character varying, "destination" character varying, "created_at" timestamp, "updated_at" timestamp)
4754
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150903135219"]]
4755
+  (5.7ms) COMMIT
4756
+ Migrating to AddSeoH1ToPages (20170202090601)
4757
+  (5.8ms) BEGIN
4758
+  (0.9ms) ALTER TABLE "kms_pages" ADD "seo_h1" character varying
4759
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170202090601"]]
4760
+  (5.8ms) COMMIT
4761
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
4762
+  (0.3ms) BEGIN
4763
+  (0.3ms) COMMIT
4764
+  (0.6ms) SELECT pg_advisory_unlock(7029803947170562740)
4765
+ Kms::Page Load (1.2ms) SELECT "kms_pages".* FROM "kms_pages"
4766
+  (0.3ms) BEGIN
4767
+ Kms::Settings Load (0.7ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4768
+  (0.3ms) SAVEPOINT active_record_1
4769
+ SQL (0.9ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC]]
4770
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4771
+  (0.2ms) SAVEPOINT active_record_1
4772
+ SQL (0.9ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:46:43 UTC], ["id", 1]]
4773
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4774
+ Processing by Kms::Public::RobotsController#show as TEXT
4775
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4776
+ Rendering text template
4777
+ Rendered text template (0.0ms)
4778
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.4ms)
4779
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4780
+  (0.6ms) ROLLBACK
4781
+  (0.2ms) BEGIN
4782
+ Kms::Settings Load (0.4ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4783
+  (0.3ms) SAVEPOINT active_record_1
4784
+ SQL (0.6ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC]]
4785
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4786
+  (0.2ms) SAVEPOINT active_record_1
4787
+ SQL (0.6ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", 2017-08-08 08:46:43 UTC], ["id", 2]]
4788
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4789
+ Processing by Kms::Public::RobotsController#show as TEXT
4790
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4791
+ Rendering text template
4792
+ Rendered text template (0.0ms)
4793
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.5ms)
4794
+  (0.5ms) ROLLBACK
4795
+  (0.2ms) BEGIN
4796
+  (0.3ms) SAVEPOINT active_record_1
4797
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4798
+  (1.0ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4799
+ SQL (1.3ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4800
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4801
+  (0.3ms) ROLLBACK
4802
+  (0.2ms) BEGIN
4803
+  (0.2ms) SAVEPOINT active_record_1
4804
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4805
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4806
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4807
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4808
+ Kms::Page Load (0.8ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4809
+  (0.3ms) ROLLBACK
4810
+  (0.2ms) BEGIN
4811
+  (0.2ms) SAVEPOINT active_record_1
4812
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4813
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4814
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4815
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4816
+ Kms::Page Load (0.6ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4817
+  (0.4ms) ROLLBACK
4818
+  (0.2ms) BEGIN
4819
+  (0.2ms) SAVEPOINT active_record_1
4820
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4821
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4822
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4823
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4824
+ Kms::Page Load (0.5ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4825
+  (0.3ms) ROLLBACK
4826
+  (0.2ms) BEGIN
4827
+  (0.2ms) SAVEPOINT active_record_1
4828
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4829
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4830
+ SQL (0.9ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4831
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4832
+ Kms::Page Load (0.7ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4833
+  (0.3ms) ROLLBACK
4834
+  (0.2ms) BEGIN
4835
+  (0.2ms) SAVEPOINT active_record_1
4836
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4837
+  (1.1ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4838
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4839
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4840
+ Kms::Page Load (0.7ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", true], ["fullpath", ""], ["LIMIT", 1]]
4841
+  (0.3ms) ROLLBACK
4842
+  (0.2ms) BEGIN
4843
+  (0.2ms) ROLLBACK
4844
+  (0.2ms) BEGIN
4845
+  (0.2ms) ROLLBACK
4846
+  (0.2ms) BEGIN
4847
+  (0.2ms) ROLLBACK
4848
+  (0.2ms) BEGIN
4849
+  (0.2ms) ROLLBACK
4850
+  (0.2ms) BEGIN
4851
+  (0.2ms) SAVEPOINT active_record_1
4852
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4853
+  (0.9ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4854
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4855
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4856
+  (0.3ms) ROLLBACK
4857
+  (0.2ms) BEGIN
4858
+  (0.2ms) SAVEPOINT active_record_1
4859
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4860
+  (1.0ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4861
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4862
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4863
+  (0.3ms) ROLLBACK
4864
+  (0.2ms) BEGIN
4865
+  (0.2ms) SAVEPOINT active_record_1
4866
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4867
+  (1.1ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4868
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4869
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4870
+  (0.3ms) ROLLBACK
4871
+  (0.2ms) BEGIN
4872
+  (0.2ms) SAVEPOINT active_record_1
4873
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4874
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4875
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", true], ["created_at", 2017-08-08 08:46:43 UTC], ["updated_at", 2017-08-08 08:46:43 UTC], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4876
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4877
+  (0.3ms) ROLLBACK
4878
+  (0.2ms) BEGIN
4879
+  (0.3ms) ROLLBACK
4880
+  (195.7ms) DROP DATABASE IF EXISTS "kms_test"
4881
+  (571.1ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
4882
+  (2.0ms) DROP TABLE IF EXISTS "kms_pages" CASCADE
4883
+  (10.2ms) CREATE TABLE "kms_pages" ("id" bigserial primary key, "title" character varying, "slug" character varying, "content" text DEFAULT '', "published" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "template_id" integer, "ancestry" character varying, "fullpath" character varying, "templatable" boolean DEFAULT 'f', "templatable_type" character varying, "hidden" boolean DEFAULT 'f', "position" integer DEFAULT 0 NOT NULL)
4884
+  (5.0ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" USING btree ("ancestry")
4885
+  (0.3ms) DROP TABLE IF EXISTS "kms_settings" CASCADE
4886
+  (5.2ms) CREATE TABLE "kms_settings" ("id" bigserial primary key, "values" json DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4887
+  (4.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
4888
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
4889
+  (0.3ms) BEGIN
4890
+ SQL (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2017-08-08 08:48:58.096949"], ["updated_at", "2017-08-08 08:48:58.096949"]]
4891
+  (0.6ms) COMMIT
4892
+  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
4893
+  (0.4ms) SELECT pg_try_advisory_lock(7029803947170562740)
4894
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
4895
+ Migrating to AddSeoFieldsToPages (20150727192219)
4896
+  (0.3ms) BEGIN
4897
+  (0.7ms) ALTER TABLE "kms_pages" ADD "seo_title" character varying
4898
+  (0.5ms) ALTER TABLE "kms_pages" ADD "seo_keywords" character varying
4899
+  (0.5ms) ALTER TABLE "kms_pages" ADD "seo_description" character varying
4900
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150727192219"]]
4901
+  (6.0ms) COMMIT
4902
+ Migrating to CreateRedirects (20150903135219)
4903
+  (0.3ms) BEGIN
4904
+  (15.9ms) CREATE TABLE "kms_redirects" ("id" serial NOT NULL PRIMARY KEY, "source" character varying, "destination" character varying, "created_at" timestamp, "updated_at" timestamp)
4905
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150903135219"]]
4906
+  (0.6ms) COMMIT
4907
+ Migrating to AddSeoH1ToPages (20170202090601)
4908
+  (6.3ms) BEGIN
4909
+  (0.7ms) ALTER TABLE "kms_pages" ADD "seo_h1" character varying
4910
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170202090601"]]
4911
+  (6.0ms) COMMIT
4912
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
4913
+  (0.3ms) BEGIN
4914
+  (0.3ms) COMMIT
4915
+  (0.4ms) SELECT pg_advisory_unlock(7029803947170562740)
4916
+ Kms::Page Load (0.9ms) SELECT "kms_pages".* FROM "kms_pages"
4917
+  (0.3ms) BEGIN
4918
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4919
+  (0.4ms) SAVEPOINT active_record_1
4920
+ SQL (0.9ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-08-08 08:48:58.663084"], ["updated_at", "2017-08-08 08:48:58.663084"]]
4921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4922
+  (0.1ms) SAVEPOINT active_record_1
4923
+ SQL (0.7ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", "2017-08-08 08:48:58.666896"], ["id", 1]]
4924
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4925
+ Processing by Kms::Public::RobotsController#show as TEXT
4926
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4927
+ Rendering text template
4928
+ Rendered text template (0.0ms)
4929
+ Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)
4930
+ Kms::Settings Load (1.1ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4931
+  (0.7ms) ROLLBACK
4932
+  (0.8ms) BEGIN
4933
+ Kms::Settings Load (16.1ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4934
+  (2.0ms) SAVEPOINT active_record_1
4935
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-08-08 08:48:58.712805"], ["updated_at", "2017-08-08 08:48:58.712805"]]
4936
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4937
+  (0.2ms) SAVEPOINT active_record_1
4938
+ SQL (0.8ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", "2017-08-08 08:48:58.716961"], ["id", 2]]
4939
+  (0.4ms) RELEASE SAVEPOINT active_record_1
4940
+ Processing by Kms::Public::RobotsController#show as TEXT
4941
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
4942
+ Rendering text template
4943
+ Rendered text template (0.0ms)
4944
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.8ms)
4945
+  (0.5ms) ROLLBACK
4946
+  (0.5ms) BEGIN
4947
+  (0.4ms) SAVEPOINT active_record_1
4948
+ Kms::Page Exists (0.9ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4949
+  (1.1ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4950
+ SQL (1.1ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:58.956545"], ["updated_at", "2017-08-08 08:48:58.956545"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4951
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4952
+  (0.3ms) ROLLBACK
4953
+  (0.1ms) BEGIN
4954
+  (0.2ms) SAVEPOINT active_record_1
4955
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4956
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4957
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:58.969093"], ["updated_at", "2017-08-08 08:48:58.969093"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4958
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4959
+  (0.3ms) ROLLBACK
4960
+  (0.2ms) BEGIN
4961
+  (0.2ms) SAVEPOINT active_record_1
4962
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4963
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4964
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:58.978284"], ["updated_at", "2017-08-08 08:48:58.978284"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4965
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4966
+  (0.3ms) ROLLBACK
4967
+  (0.2ms) BEGIN
4968
+  (0.3ms) SAVEPOINT active_record_1
4969
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4970
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4971
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:58.987980"], ["updated_at", "2017-08-08 08:48:58.987980"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4972
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4973
+  (0.3ms) ROLLBACK
4974
+  (0.2ms) BEGIN
4975
+  (0.2ms) SAVEPOINT active_record_1
4976
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4977
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4978
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:58.998189"], ["updated_at", "2017-08-08 08:48:58.998189"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4979
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4980
+  (0.3ms) ROLLBACK
4981
+  (0.2ms) BEGIN
4982
+  (0.2ms) SAVEPOINT active_record_1
4983
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4984
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
4985
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:59.010063"], ["updated_at", "2017-08-08 08:48:59.010063"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
4986
+  (0.3ms) RELEASE SAVEPOINT active_record_1
4987
+  (0.3ms) ROLLBACK
4988
+  (0.2ms) BEGIN
4989
+  (0.2ms) ROLLBACK
4990
+  (0.2ms) BEGIN
4991
+  (0.2ms) ROLLBACK
4992
+  (0.2ms) BEGIN
4993
+  (0.2ms) ROLLBACK
4994
+  (0.1ms) BEGIN
4995
+  (0.1ms) ROLLBACK
4996
+  (0.1ms) BEGIN
4997
+  (0.2ms) SAVEPOINT active_record_1
4998
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
4999
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5000
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:59.027185"], ["updated_at", "2017-08-08 08:48:59.027185"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5001
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5002
+  (0.3ms) ROLLBACK
5003
+  (0.2ms) BEGIN
5004
+  (0.2ms) SAVEPOINT active_record_1
5005
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5006
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5007
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:59.038562"], ["updated_at", "2017-08-08 08:48:59.038562"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5008
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5009
+  (0.3ms) ROLLBACK
5010
+  (0.2ms) BEGIN
5011
+  (0.2ms) SAVEPOINT active_record_1
5012
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5013
+  (0.7ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5014
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:59.050056"], ["updated_at", "2017-08-08 08:48:59.050056"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5015
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5016
+  (0.3ms) ROLLBACK
5017
+  (0.2ms) BEGIN
5018
+  (0.2ms) SAVEPOINT active_record_1
5019
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5020
+  (0.6ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5021
+ SQL (0.6ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 08:48:59.061040"], ["updated_at", "2017-08-08 08:48:59.061040"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5022
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5023
+  (0.3ms) ROLLBACK
5024
+  (0.2ms) BEGIN
5025
+  (0.3ms) ROLLBACK
5026
+  (212.8ms) DROP DATABASE IF EXISTS "kms_test"
5027
+  (605.9ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
5028
+  (0.9ms) DROP TABLE IF EXISTS "kms_pages" CASCADE
5029
+  (13.8ms) CREATE TABLE "kms_pages" ("id" bigserial primary key, "title" character varying, "slug" character varying, "content" text DEFAULT '', "published" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "template_id" integer, "ancestry" character varying, "fullpath" character varying, "templatable" boolean DEFAULT 'f', "templatable_type" character varying, "hidden" boolean DEFAULT 'f', "position" integer DEFAULT 0 NOT NULL)
5030
+  (3.2ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" USING btree ("ancestry")
5031
+  (0.7ms) DROP TABLE IF EXISTS "kms_settings" CASCADE
5032
+  (7.8ms) CREATE TABLE "kms_settings" ("id" bigserial primary key, "values" json DEFAULT '{}', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
5033
+  (21.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
5034
+ ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
5035
+  (0.3ms) BEGIN
5036
+ SQL (0.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2017-08-08 09:00:39.315365"], ["updated_at", "2017-08-08 09:00:39.315365"]]
5037
+  (6.1ms) COMMIT
5038
+  (22.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
5039
+  (0.8ms) SELECT pg_try_advisory_lock(7029803947170562740)
5040
+  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
5041
+ Migrating to AddSeoFieldsToPages (20150727192219)
5042
+  (0.4ms) BEGIN
5043
+  (1.0ms) ALTER TABLE "kms_pages" ADD "seo_title" character varying
5044
+  (1.1ms) ALTER TABLE "kms_pages" ADD "seo_keywords" character varying
5045
+  (1.2ms) ALTER TABLE "kms_pages" ADD "seo_description" character varying
5046
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150727192219"]]
5047
+  (6.4ms) COMMIT
5048
+ Migrating to CreateRedirects (20150903135219)
5049
+  (0.4ms) BEGIN
5050
+  (16.9ms) CREATE TABLE "kms_redirects" ("id" serial NOT NULL PRIMARY KEY, "source" character varying, "destination" character varying, "created_at" timestamp, "updated_at" timestamp)
5051
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150903135219"]]
5052
+  (5.1ms) COMMIT
5053
+ Migrating to AddSeoH1ToPages (20170202090601)
5054
+  (6.2ms) BEGIN
5055
+  (1.0ms) ALTER TABLE "kms_pages" ADD "seo_h1" character varying
5056
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20170202090601"]]
5057
+  (11.7ms) COMMIT
5058
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
5059
+  (0.4ms) BEGIN
5060
+  (0.4ms) COMMIT
5061
+  (0.6ms) SELECT pg_advisory_unlock(7029803947170562740)
5062
+ Kms::Page Load (2.0ms) SELECT "kms_pages".* FROM "kms_pages"
5063
+  (0.4ms) BEGIN
5064
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
5065
+  (0.4ms) SAVEPOINT active_record_1
5066
+ SQL (1.2ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-08-08 09:00:40.030717"], ["updated_at", "2017-08-08 09:00:40.030717"]]
5067
+  (0.5ms) RELEASE SAVEPOINT active_record_1
5068
+  (0.4ms) SAVEPOINT active_record_1
5069
+ SQL (0.8ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", "2017-08-08 09:00:40.035931"], ["id", 1]]
5070
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5071
+ Processing by Kms::Public::RobotsController#show as TEXT
5072
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
5073
+ Rendering text template
5074
+ Rendered text template (0.0ms)
5075
+ Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.5ms)
5076
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
5077
+  (0.7ms) ROLLBACK
5078
+  (0.4ms) BEGIN
5079
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
5080
+  (0.3ms) SAVEPOINT active_record_1
5081
+ SQL (0.6ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2017-08-08 09:00:40.063117"], ["updated_at", "2017-08-08 09:00:40.063117"]]
5082
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5083
+  (0.2ms) SAVEPOINT active_record_1
5084
+ SQL (0.6ms) UPDATE "kms_settings" SET "values" = $1, "updated_at" = $2 WHERE "kms_settings"."id" = $3 [["values", "{\"robots\":\"User-agent: *\"}"], ["updated_at", "2017-08-08 09:00:40.065812"], ["id", 2]]
5085
+  (0.2ms) RELEASE SAVEPOINT active_record_1
5086
+ Processing by Kms::Public::RobotsController#show as TEXT
5087
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
5088
+ Rendering text template
5089
+ Rendered text template (0.0ms)
5090
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)
5091
+  (0.4ms) ROLLBACK
5092
+  (0.2ms) BEGIN
5093
+  (0.3ms) SAVEPOINT active_record_1
5094
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5095
+  (1.0ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5096
+ SQL (0.9ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.307516"], ["updated_at", "2017-08-08 09:00:40.307516"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5097
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5098
+  (0.4ms) ROLLBACK
5099
+  (0.2ms) BEGIN
5100
+  (0.3ms) SAVEPOINT active_record_1
5101
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5102
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5103
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.320598"], ["updated_at", "2017-08-08 09:00:40.320598"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5104
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5105
+ Kms::Page Load (1.0ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", "t"], ["fullpath", ""], ["LIMIT", 1]]
5106
+  (0.4ms) ROLLBACK
5107
+  (0.2ms) BEGIN
5108
+  (0.3ms) SAVEPOINT active_record_1
5109
+ Kms::Page Exists (0.5ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5110
+  (1.0ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5111
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.337977"], ["updated_at", "2017-08-08 09:00:40.337977"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5112
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5113
+ Kms::Page Load (0.6ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", "t"], ["fullpath", ""], ["LIMIT", 1]]
5114
+  (0.4ms) ROLLBACK
5115
+  (0.2ms) BEGIN
5116
+  (0.3ms) SAVEPOINT active_record_1
5117
+ Kms::Page Exists (0.8ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5118
+  (1.3ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5119
+ SQL (1.2ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.354301"], ["updated_at", "2017-08-08 09:00:40.354301"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5120
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5121
+ Kms::Page Load (0.6ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", "t"], ["fullpath", ""], ["LIMIT", 1]]
5122
+  (0.3ms) ROLLBACK
5123
+  (0.2ms) BEGIN
5124
+  (0.3ms) SAVEPOINT active_record_1
5125
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5126
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5127
+ SQL (0.9ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.369847"], ["updated_at", "2017-08-08 09:00:40.369847"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5128
+  (0.4ms) RELEASE SAVEPOINT active_record_1
5129
+ Kms::Page Load (0.9ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", "t"], ["fullpath", ""], ["LIMIT", 1]]
5130
+  (0.6ms) ROLLBACK
5131
+  (0.3ms) BEGIN
5132
+  (0.3ms) SAVEPOINT active_record_1
5133
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5134
+  (0.9ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5135
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.386376"], ["updated_at", "2017-08-08 09:00:40.386376"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5136
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5137
+ Kms::Page Load (0.7ms) SELECT "kms_pages".* FROM "kms_pages" WHERE "kms_pages"."published" = $1 AND "kms_pages"."fullpath" = $2 LIMIT $3 [["published", "t"], ["fullpath", ""], ["LIMIT", 1]]
5138
+  (0.3ms) ROLLBACK
5139
+  (0.3ms) BEGIN
5140
+  (0.3ms) ROLLBACK
5141
+  (0.2ms) BEGIN
5142
+  (0.3ms) ROLLBACK
5143
+  (0.4ms) BEGIN
5144
+  (0.3ms) ROLLBACK
5145
+  (0.4ms) BEGIN
5146
+  (0.5ms) ROLLBACK
5147
+  (0.2ms) BEGIN
5148
+  (0.3ms) SAVEPOINT active_record_1
5149
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5150
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5151
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.413258"], ["updated_at", "2017-08-08 09:00:40.413258"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5152
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5153
+  (0.3ms) ROLLBACK
5154
+  (0.3ms) BEGIN
5155
+  (0.3ms) SAVEPOINT active_record_1
5156
+ Kms::Page Exists (0.6ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5157
+  (1.0ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5158
+ SQL (1.3ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.426120"], ["updated_at", "2017-08-08 09:00:40.426120"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5159
+  (0.6ms) RELEASE SAVEPOINT active_record_1
5160
+  (0.4ms) ROLLBACK
5161
+  (0.3ms) BEGIN
5162
+  (0.2ms) SAVEPOINT active_record_1
5163
+ Kms::Page Exists (0.7ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5164
+  (0.8ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5165
+ SQL (0.8ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.443308"], ["updated_at", "2017-08-08 09:00:40.443308"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5166
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5167
+  (0.4ms) ROLLBACK
5168
+  (0.2ms) BEGIN
5169
+  (0.4ms) SAVEPOINT active_record_1
5170
+ Kms::Page Exists (1.0ms) SELECT 1 AS one FROM "kms_pages" WHERE "kms_pages"."slug" = $1 LIMIT $2 [["slug", "index"], ["LIMIT", 1]]
5171
+  (1.2ms) SELECT MAX("kms_pages"."position") FROM "kms_pages" WHERE (ancestry IS NULL)
5172
+ SQL (0.7ms) INSERT INTO "kms_pages" ("title", "slug", "published", "created_at", "updated_at", "fullpath", "seo_title", "seo_keywords", "seo_description", "seo_h1") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id" [["title", "Home"], ["slug", "index"], ["published", "t"], ["created_at", "2017-08-08 09:00:40.457904"], ["updated_at", "2017-08-08 09:00:40.457904"], ["fullpath", ""], ["seo_title", "Home"], ["seo_keywords", "home, page"], ["seo_description", "Home Page"], ["seo_h1", "Home Page"]]
5173
+  (0.3ms) RELEASE SAVEPOINT active_record_1
5174
+  (0.4ms) ROLLBACK
5175
+  (0.2ms) BEGIN
5176
+  (0.4ms) ROLLBACK