kms 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kms/application/controllers/pages_controller.coffee.erb +1 -2
  3. data/app/assets/javascripts/templates/assets/index.html.slim +4 -12
  4. data/app/assets/javascripts/templates/help/scopes.html.slim +74 -0
  5. data/app/assets/javascripts/templates/pages/index.html.slim +4 -3
  6. data/app/assets/javascripts/templates/snippets/index.html.slim +4 -3
  7. data/app/assets/javascripts/templates/templates/index.html.slim +4 -3
  8. data/app/assets/javascripts/templates/users/index.html.slim +3 -2
  9. data/app/assets/stylesheets/kms/custom.css.scss +3 -0
  10. data/app/controllers/kms/pages_controller.rb +2 -2
  11. data/app/models/ability.rb +0 -1
  12. data/app/models/concerns/kms/positioned.rb +18 -0
  13. data/app/models/kms/page.rb +2 -12
  14. data/app/services/kms/functions_registry.rb +11 -0
  15. data/app/uploaders/kms/asset_uploader.rb +1 -1
  16. data/config/initializers/help.rb +1 -1
  17. data/config/initializers/liquor.rb +0 -47
  18. data/config/locales/en.yml +22 -0
  19. data/config/locales/ru.yml +22 -0
  20. data/lib/generators/kms/install/install_generator.rb +2 -0
  21. data/lib/generators/kms/install/templates/carrierwave.rb +14 -0
  22. data/lib/kms/dependencies.rb +2 -0
  23. data/lib/kms/engine.rb +1 -1
  24. data/lib/kms/version.rb +1 -1
  25. data/spec/controllers/kms/snippets_controller_spec.rb +6 -6
  26. data/spec/internal/log/test.log +2439 -0
  27. data/spec/services/kms/functions_registry_spec.rb +14 -0
  28. data/spec/spec_helper.rb +1 -1
  29. data/vendor/assets/bower.json +1 -1
  30. data/vendor/assets/bower_components/angular-ui-tree/CHANGELOG.md +164 -0
  31. data/vendor/assets/bower_components/angular-ui-tree/CONTRIBUTING.md +39 -0
  32. data/vendor/assets/bower_components/angular-ui-tree/README.md +145 -37
  33. data/vendor/assets/bower_components/angular-ui-tree/bower.json +28 -18
  34. data/vendor/assets/bower_components/angular-ui-tree/{source → dist}/angular-ui-tree.css +18 -16
  35. data/vendor/assets/bower_components/angular-ui-tree/dist/angular-ui-tree.js +1408 -822
  36. data/vendor/assets/bower_components/angular-ui-tree/dist/angular-ui-tree.min.css +1 -2
  37. data/vendor/assets/bower_components/angular-ui-tree/dist/angular-ui-tree.min.js +3 -3
  38. data/vendor/assets/bower_components/angular-ui-tree/e2e/basic-example/basic-example.js +81 -0
  39. data/vendor/assets/bower_components/angular-ui-tree/e2e/basic-example/page.js +42 -0
  40. data/vendor/assets/bower_components/angular-ui-tree/e2e/table-example/page.js +31 -0
  41. data/vendor/assets/bower_components/angular-ui-tree/e2e/table-example/table-example.js +34 -0
  42. data/vendor/assets/bower_components/angular-ui-tree/index.js +2 -0
  43. data/vendor/assets/bower_components/angular-ui-tree/protractor.conf.js +19 -0
  44. data/vendor/assets/bower_components/angular/angular.js +4880 -2111
  45. data/vendor/assets/bower_components/angular/angular.min.js +320 -297
  46. data/vendor/assets/bower_components/angular/angular.min.js.gzip +0 -0
  47. data/vendor/assets/bower_components/angular/angular.min.js.map +3 -3
  48. data/vendor/assets/bower_components/angular/bower.json +1 -1
  49. data/vendor/assets/bower_components/angular/package.json +1 -1
  50. metadata +32 -40
  51. data/vendor/assets/bower_components/angular-ui-tree/Gruntfile.js +0 -229
  52. data/vendor/assets/bower_components/angular-ui-tree/build/compiler.jar +0 -0
  53. data/vendor/assets/bower_components/angular-ui-tree/demo/css/demo-horizontal.css +0 -47
  54. data/vendor/assets/bower_components/angular-ui-tree/demo/css/demo.css +0 -31
  55. data/vendor/assets/bower_components/angular-ui-tree/demo/css/tree.css +0 -25
  56. data/vendor/assets/bower_components/angular-ui-tree/demo/dist/angular-ui-tree.js +0 -1243
  57. data/vendor/assets/bower_components/angular-ui-tree/demo/dist/angular-ui-tree.min.css +0 -2
  58. data/vendor/assets/bower_components/angular-ui-tree/demo/dist/angular-ui-tree.min.js +0 -6
  59. data/vendor/assets/bower_components/angular-ui-tree/demo/filter.html +0 -64
  60. data/vendor/assets/bower_components/angular-ui-tree/demo/groups.html +0 -100
  61. data/vendor/assets/bower_components/angular-ui-tree/demo/index.html +0 -101
  62. data/vendor/assets/bower_components/angular-ui-tree/demo/js/demo.js +0 -63
  63. data/vendor/assets/bower_components/angular-ui-tree/demo/js/filter.js +0 -91
  64. data/vendor/assets/bower_components/angular-ui-tree/demo/js/groups.js +0 -143
  65. data/vendor/assets/bower_components/angular-ui-tree/demo/js/tree.js +0 -102
  66. data/vendor/assets/bower_components/angular-ui-tree/demo/js/trees.js +0 -60
  67. data/vendor/assets/bower_components/angular-ui-tree/demo/test.html +0 -60
  68. data/vendor/assets/bower_components/angular-ui-tree/demo/tree-horizontal.html +0 -66
  69. data/vendor/assets/bower_components/angular-ui-tree/demo/tree.html +0 -66
  70. data/vendor/assets/bower_components/angular-ui-tree/demo/trees.html +0 -92
  71. data/vendor/assets/bower_components/angular-ui-tree/guide/00_usage.ngdoc +0 -78
  72. data/vendor/assets/bower_components/angular-ui-tree/guide/01_development_setup.ngdoc +0 -58
  73. data/vendor/assets/bower_components/angular-ui-tree/guide/index.ngdoc +0 -33
  74. data/vendor/assets/bower_components/angular-ui-tree/karma.conf.js +0 -49
  75. data/vendor/assets/bower_components/angular-ui-tree/package.json +0 -40
  76. data/vendor/assets/bower_components/angular-ui-tree/source/angular-ui-tree.scss +0 -63
  77. data/vendor/assets/bower_components/angular-ui-tree/source/controllers/handleCtrl.js +0 -16
  78. data/vendor/assets/bower_components/angular-ui-tree/source/controllers/nodeCtrl.js +0 -141
  79. data/vendor/assets/bower_components/angular-ui-tree/source/controllers/nodesCtrl.js +0 -100
  80. data/vendor/assets/bower_components/angular-ui-tree/source/controllers/treeCtrl.js +0 -63
  81. data/vendor/assets/bower_components/angular-ui-tree/source/directives/uiTree.js +0 -115
  82. data/vendor/assets/bower_components/angular-ui-tree/source/directives/uiTreeHandle.js +0 -27
  83. data/vendor/assets/bower_components/angular-ui-tree/source/directives/uiTreeNode.js +0 -427
  84. data/vendor/assets/bower_components/angular-ui-tree/source/directives/uiTreeNodes.js +0 -59
  85. data/vendor/assets/bower_components/angular-ui-tree/source/main.js +0 -23
  86. data/vendor/assets/bower_components/angular-ui-tree/source/services/helper.js +0 -265
@@ -12,6 +12,8 @@ module Kms
12
12
 
13
13
  template 'dragonfly.rb', 'config/initializers/dragonfly.rb'
14
14
 
15
+ template 'carrierwave.rb', 'config/initializers/carrierwave.rb'
16
+
15
17
  end
16
18
 
17
19
  def insert_engine_routes
@@ -0,0 +1,14 @@
1
+ CarrierWave.configure do |config|
2
+ if ENV['KMS_ASSETS_STORAGE'] == 'fog'
3
+ config.fog_provider = 'fog/aws'
4
+ config.fog_credentials = {
5
+ provider: 'AWS',
6
+ aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'],
7
+ aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
8
+ region: ENV['AWS_REGION'] || 'us-east-1'
9
+ }
10
+ config.fog_directory = ENV['AWS_BUCKET']
11
+ # config.fog_public = false
12
+ config.fog_attributes = { 'Cache-Control' => "max-age=#{365.day.to_i}" }
13
+ end
14
+ end
@@ -4,8 +4,10 @@ require "less-rails"
4
4
  require 'russian'
5
5
  require 'angular-rails-templates'
6
6
  require 'liquor'#, github: 'webgradus/liquor'
7
+ require 'fog/aws'
7
8
  require 'carrierwave'
8
9
  require 'carrierwave/orm/activerecord'
10
+ require 'carrierwave/storage/fog'
9
11
  require 'active_model_serializers'
10
12
  require 'ancestry'
11
13
  require 'devise'
@@ -37,7 +37,7 @@ module Kms
37
37
 
38
38
  initializer "kms.compile_templates" do |app|
39
39
  app.config.after_initialize do
40
- Kms.template_manager = Liquor::Manager.new(import: [Liquor::Pagination, Kms::Functions::Assets, Kms::Functions::Currency])
40
+ Kms.template_manager = Liquor::Manager.new(import: Kms::FunctionsRegistry.modules)
41
41
 
42
42
  if ActiveRecord::Base.connection.tables.include?('kms_templates')
43
43
  Template.all.each do |template|
@@ -1,3 +1,3 @@
1
1
  module Kms
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
@@ -15,7 +15,7 @@ describe Kms::SnippetsController, type: :controller do
15
15
  describe 'POST create' do
16
16
  context 'when save failed' do
17
17
  it "returns errors" do
18
- post :create, snippet: FactoryGirl.attributes_for(:invalid_snippet), format: :json
18
+ post :create, params: { snippet: FactoryGirl.attributes_for(:invalid_snippet) }, format: :json
19
19
  expect(response.unprocessable?).to be true
20
20
  expect(json['errors']).to_not be nil
21
21
  end
@@ -23,7 +23,7 @@ describe Kms::SnippetsController, type: :controller do
23
23
  context 'when save successful' do
24
24
  it "returns 204 status" do
25
25
  snippet_params = FactoryGirl.attributes_for(:snippet)
26
- post :create, snippet: snippet_params, format: :json
26
+ post :create, params: { snippet: snippet_params }, format: :json
27
27
  expect(response).to have_http_status(204)
28
28
  end
29
29
  end
@@ -34,7 +34,7 @@ describe Kms::SnippetsController, type: :controller do
34
34
  context 'when update failed' do
35
35
  it "returns errors" do
36
36
  snippet = FactoryGirl.create(:snippet)
37
- put :update, id: snippet.id, snippet: {slug: nil}, format: :json
37
+ put :update, params: { id: snippet.id, snippet: {slug: nil} }, format: :json
38
38
  expect(response.unprocessable?).to be true
39
39
  expect(json['errors']).to_not be nil
40
40
  end
@@ -42,7 +42,7 @@ describe Kms::SnippetsController, type: :controller do
42
42
  context 'when update successful' do
43
43
  it "returns 204 status" do
44
44
  snippet = FactoryGirl.create(:snippet)
45
- put :update, id: snippet.id, snippet: {slug: 'new-slug'}, format: :json
45
+ put :update, params: { id: snippet.id, snippet: {slug: 'new-slug'} }, format: :json
46
46
  expect(response).to have_http_status(204)
47
47
  end
48
48
  end
@@ -51,7 +51,7 @@ describe Kms::SnippetsController, type: :controller do
51
51
  describe 'GET snippet' do
52
52
  it "returns snippet object" do
53
53
  snippet = FactoryGirl.create(:snippet)
54
- get :show, id: snippet.id, format: :json
54
+ get :show, params: { id: snippet.id }, format: :json
55
55
  expect(response).to be_success
56
56
  expect(json['name']).to eq(snippet.name)
57
57
  expect(json['slug']).to eq(snippet.slug)
@@ -62,7 +62,7 @@ describe Kms::SnippetsController, type: :controller do
62
62
  describe 'DELETE snippet' do
63
63
  it 'deletes snippet and returns no content' do
64
64
  snippet = FactoryGirl.create(:snippet)
65
- delete :destroy, id: snippet.id, format: :json
65
+ delete :destroy, params: { id: snippet.id }, format: :json
66
66
  expect(response).to have_http_status(204)
67
67
  end
68
68
  end
@@ -22143,3 +22143,2442 @@ Completed 204 No Content in 9ms (ActiveRecord: 3.2ms)
22143
22143
   (0.2ms) ROLLBACK
22144
22144
   (0.2ms) BEGIN
22145
22145
   (0.3ms) ROLLBACK
22146
+  (261.2ms) DROP DATABASE IF EXISTS "kms_test"
22147
+  (667.3ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
22148
+  (24.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22149
+ 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]]
22150
+  (0.3ms) BEGIN
22151
+ SQL (6.6ms) 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-04-14 12:26:35 UTC], ["updated_at", 2017-04-14 12:26:35 UTC]]
22152
+  (6.0ms) COMMIT
22153
+  (21.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22154
+  (0.4ms) SELECT pg_try_advisory_lock(7029803947170562740);
22155
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
22156
+ Migrating to CreatePages (20141027065341)
22157
+  (0.3ms) BEGIN
22158
+  (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)
22159
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
22160
+  (0.6ms) COMMIT
22161
+ Migrating to CreateTemplates (20141027083603)
22162
+  (6.2ms) BEGIN
22163
+  (16.3ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22164
+ SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
22165
+  (0.6ms) COMMIT
22166
+ Migrating to AddTemplateIdToPages (20141027083633)
22167
+  (6.4ms) BEGIN
22168
+  (6.8ms) ALTER TABLE "kms_pages" ADD "template_id" integer
22169
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
22170
+  (5.6ms) COMMIT
22171
+ Migrating to CreateAssets (20141029145253)
22172
+  (0.3ms) BEGIN
22173
+  (16.8ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22174
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
22175
+  (5.1ms) COMMIT
22176
+ Migrating to AddAncestryToPages (20141031125758)
22177
+  (6.9ms) BEGIN
22178
+  (0.5ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
22179
+  (7.3ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
22180
+ SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
22181
+  (6.6ms) COMMIT
22182
+ Migrating to DeviseCreateUsers (20141031140308)
22183
+  (0.3ms) BEGIN
22184
+  (19.8ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
22185
+  (1.2ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
22186
+  (1.1ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
22187
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
22188
+  (0.5ms) COMMIT
22189
+ Migrating to AddFullpathToPages (20141119084306)
22190
+  (6.4ms) BEGIN
22191
+  (0.7ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
22192
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
22193
+  (11.7ms) COMMIT
22194
+ Migrating to AddRoleToUsers (20141121112652)
22195
+  (0.2ms) BEGIN
22196
+  (0.6ms) ALTER TABLE "kms_users" ADD "role" character varying
22197
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
22198
+  (5.6ms) COMMIT
22199
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
22200
+  (0.3ms) BEGIN
22201
+  (23.1ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
22202
+  (0.6ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
22203
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
22204
+  (2.4ms) COMMIT
22205
+ Migrating to AddHiddenToPage (20141209132901)
22206
+  (0.6ms) BEGIN
22207
+  (21.9ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
22208
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
22209
+  (1.3ms) COMMIT
22210
+ Migrating to AddPositionToKmsPages (20150209120632)
22211
+  (0.4ms) BEGIN
22212
+  (25.7ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
22213
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
22214
+  (1.8ms) COMMIT
22215
+ Migrating to CreateKmsSnippets (20160129100437)
22216
+  (0.4ms) BEGIN
22217
+  (24.3ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22218
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
22219
+  (0.6ms) COMMIT
22220
+ Migrating to CreateKmsSettings (20160712094512)
22221
+  (6.2ms) BEGIN
22222
+  (16.5ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22223
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
22224
+  (1.3ms) COMMIT
22225
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
22226
+  (6.1ms) BEGIN
22227
+  (0.6ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
22228
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
22229
+  (6.1ms) COMMIT
22230
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
22231
+  (0.2ms) BEGIN
22232
+  (0.2ms) COMMIT
22233
+  (0.3ms) SELECT pg_advisory_unlock(7029803947170562740)
22234
+ Kms::Template Load (1.6ms) SELECT "kms_templates".* FROM "kms_templates"
22235
+ Kms::Page Load (1.0ms) SELECT "kms_pages".* FROM "kms_pages"
22236
+ Kms::Snippet Load (0.9ms) SELECT "kms_snippets".* FROM "kms_snippets"
22237
+  (189.9ms) DROP DATABASE IF EXISTS "kms_test"
22238
+  (533.8ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
22239
+  (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22240
+ 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]]
22241
+  (0.3ms) BEGIN
22242
+ SQL (6.7ms) 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-04-14 12:27:44 UTC], ["updated_at", 2017-04-14 12:27:44 UTC]]
22243
+  (6.1ms) COMMIT
22244
+  (21.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22245
+  (0.6ms) SELECT pg_try_advisory_lock(7029803947170562740);
22246
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
22247
+ Migrating to CreatePages (20141027065341)
22248
+  (0.2ms) BEGIN
22249
+  (23.3ms) 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)
22250
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
22251
+  (0.6ms) COMMIT
22252
+ Migrating to CreateTemplates (20141027083603)
22253
+  (5.8ms) BEGIN
22254
+  (17.7ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22255
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
22256
+  (0.8ms) COMMIT
22257
+ Migrating to AddTemplateIdToPages (20141027083633)
22258
+  (6.3ms) BEGIN
22259
+  (0.5ms) ALTER TABLE "kms_pages" ADD "template_id" integer
22260
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
22261
+  (6.1ms) COMMIT
22262
+ Migrating to CreateAssets (20141029145253)
22263
+  (0.2ms) BEGIN
22264
+  (16.0ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22265
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
22266
+  (6.2ms) COMMIT
22267
+ Migrating to AddAncestryToPages (20141031125758)
22268
+  (5.8ms) BEGIN
22269
+  (0.7ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
22270
+  (6.8ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
22271
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
22272
+  (5.0ms) COMMIT
22273
+ Migrating to DeviseCreateUsers (20141031140308)
22274
+  (0.2ms) BEGIN
22275
+  (20.1ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
22276
+  (1.4ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
22277
+  (1.4ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
22278
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
22279
+  (0.6ms) COMMIT
22280
+ Migrating to AddFullpathToPages (20141119084306)
22281
+  (5.9ms) BEGIN
22282
+  (1.8ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
22283
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
22284
+  (6.7ms) COMMIT
22285
+ Migrating to AddRoleToUsers (20141121112652)
22286
+  (0.4ms) BEGIN
22287
+  (0.9ms) ALTER TABLE "kms_users" ADD "role" character varying
22288
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
22289
+  (6.0ms) COMMIT
22290
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
22291
+  (0.2ms) BEGIN
22292
+  (25.0ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
22293
+  (0.7ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
22294
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
22295
+  (1.4ms) COMMIT
22296
+ Migrating to AddHiddenToPage (20141209132901)
22297
+  (0.3ms) BEGIN
22298
+  (24.1ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
22299
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
22300
+  (1.1ms) COMMIT
22301
+ Migrating to AddPositionToKmsPages (20150209120632)
22302
+  (0.3ms) BEGIN
22303
+  (24.3ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
22304
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
22305
+  (1.7ms) COMMIT
22306
+ Migrating to CreateKmsSnippets (20160129100437)
22307
+  (0.3ms) BEGIN
22308
+  (16.9ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22309
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
22310
+  (6.2ms) COMMIT
22311
+ Migrating to CreateKmsSettings (20160712094512)
22312
+  (6.1ms) BEGIN
22313
+  (16.6ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22314
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
22315
+  (0.7ms) COMMIT
22316
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
22317
+  (6.1ms) BEGIN
22318
+  (0.5ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
22319
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
22320
+  (6.1ms) COMMIT
22321
+ 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]]
22322
+  (0.3ms) BEGIN
22323
+  (0.7ms) COMMIT
22324
+  (1.1ms) SELECT pg_advisory_unlock(7029803947170562740)
22325
+ Kms::Template Load (0.7ms) SELECT "kms_templates".* FROM "kms_templates"
22326
+ Kms::Page Load (1.2ms) SELECT "kms_pages".* FROM "kms_pages"
22327
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
22328
+  (0.3ms) BEGIN
22329
+  (0.3ms) SAVEPOINT active_record_1
22330
+ Kms::User Exists (1.3ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22331
+ SQL (20.2ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$1ZoElUuDq4sE2X1d3zLMtOGgiBy0n5YwLy44Y3PfoXePlCtfuxc52"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22332
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22333
+  (0.3ms) SAVEPOINT active_record_1
22334
+ SQL (6.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22335
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22336
+ Processing by Kms::SnippetsController#index as JSON
22337
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
22338
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
22339
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.57ms)
22340
+ Completed 200 OK in 20ms (Views: 16.3ms | ActiveRecord: 1.3ms)
22341
+  (0.4ms) ROLLBACK
22342
+  (0.1ms) BEGIN
22343
+  (0.2ms) SAVEPOINT active_record_1
22344
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22345
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$ijPBgta5FAK5nWY152r29OGA83FLe.VL.S.KVZ9Ax8AMPtcCWTeNy"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22346
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22347
+ Processing by Kms::SnippetsController#create as JSON
22348
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
22349
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
22350
+  (0.3ms) SAVEPOINT active_record_1
22351
+  (6.3ms) ROLLBACK TO SAVEPOINT active_record_1
22352
+ Completed 422 Unprocessable Entity in 52ms (Views: 6.0ms | ActiveRecord: 7.2ms)
22353
+  (0.4ms) ROLLBACK
22354
+  (0.1ms) BEGIN
22355
+  (0.3ms) SAVEPOINT active_record_1
22356
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22357
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$9nXZiyCiP5he45hBsHwKJ.loXZF/4JtHs6oobBOiIjYDNe4lPNSyC"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22358
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22359
+ Processing by Kms::SnippetsController#create as JSON
22360
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
22361
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
22362
+  (0.2ms) SAVEPOINT active_record_1
22363
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22364
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22365
+ Completed 204 No Content in 5ms (ActiveRecord: 1.4ms)
22366
+  (0.2ms) ROLLBACK
22367
+  (0.1ms) BEGIN
22368
+  (0.2ms) SAVEPOINT active_record_1
22369
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22370
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$X80VRL3eYf5lEdKK1i1v8Ouu9WIeBL1EcV8hko7Q.nxk3scuoKei6"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22371
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22372
+  (0.2ms) SAVEPOINT active_record_1
22373
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22374
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22375
+ Processing by Kms::SnippetsController#update as JSON
22376
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
22377
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
22378
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
22379
+  (0.2ms) SAVEPOINT active_record_1
22380
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
22381
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.2ms)
22382
+  (0.2ms) ROLLBACK
22383
+  (0.2ms) BEGIN
22384
+  (0.2ms) SAVEPOINT active_record_1
22385
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22386
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$cnxauVEkvQ9hq9ZuJuHxYOnhPp6pkhA7dGllQkcTWucBhszUinoLa"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22387
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22388
+  (0.2ms) SAVEPOINT active_record_1
22389
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22390
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22391
+ Processing by Kms::SnippetsController#update as JSON
22392
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
22393
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
22394
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
22395
+  (0.2ms) SAVEPOINT active_record_1
22396
+ SQL (0.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:27:45 UTC], ["id", 4]]
22397
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22398
+ Completed 204 No Content in 7ms (ActiveRecord: 1.8ms)
22399
+  (0.2ms) ROLLBACK
22400
+  (0.1ms) BEGIN
22401
+  (0.3ms) SAVEPOINT active_record_1
22402
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22403
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$/yFZWlNpjsFbmuMZwCkTwOK6j8DRlhipIS/3nPtn..Uc/cCoihjhS"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22404
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22405
+  (0.2ms) SAVEPOINT active_record_1
22406
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22407
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22408
+ Processing by Kms::SnippetsController#show as JSON
22409
+ Parameters: {"id"=>"5"}
22410
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
22411
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
22412
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.23ms)
22413
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.8ms)
22414
+  (0.3ms) ROLLBACK
22415
+  (0.7ms) BEGIN
22416
+  (0.2ms) SAVEPOINT active_record_1
22417
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22418
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$33Zz4JXhw1o3CNGdwXhoSurUpP.S75IhuAubzoTFXSTa3tS89ua36"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22419
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22420
+  (0.2ms) SAVEPOINT active_record_1
22421
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22422
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22423
+ Processing by Kms::SnippetsController#destroy as JSON
22424
+ Parameters: {"id"=>"6"}
22425
+ Kms::User Load (0.3ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
22426
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
22427
+  (0.2ms) SAVEPOINT active_record_1
22428
+ SQL (0.6ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
22429
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22430
+ Completed 204 No Content in 5ms (ActiveRecord: 1.7ms)
22431
+  (0.2ms) ROLLBACK
22432
+  (0.2ms) BEGIN
22433
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
22434
+  (0.2ms) SAVEPOINT active_record_1
22435
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22436
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22437
+  (0.3ms) ROLLBACK
22438
+  (0.1ms) BEGIN
22439
+  (0.1ms) ROLLBACK
22440
+  (0.1ms) BEGIN
22441
+  (0.3ms) SAVEPOINT active_record_1
22442
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:27:45 UTC], ["updated_at", 2017-04-14 12:27:45 UTC]]
22443
+  (0.4ms) RELEASE SAVEPOINT active_record_1
22444
+  (0.4ms) ROLLBACK
22445
+  (0.2ms) BEGIN
22446
+  (0.2ms) ROLLBACK
22447
+  (0.1ms) BEGIN
22448
+  (0.2ms) ROLLBACK
22449
+  (195.6ms) DROP DATABASE IF EXISTS "kms_test"
22450
+  (576.1ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
22451
+  (7.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22452
+ 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]]
22453
+  (0.3ms) BEGIN
22454
+ SQL (6.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-04-14 12:32:38 UTC], ["updated_at", 2017-04-14 12:32:38 UTC]]
22455
+  (5.9ms) COMMIT
22456
+  (20.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22457
+  (0.3ms) SELECT pg_try_advisory_lock(7029803947170562740);
22458
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
22459
+ Migrating to CreatePages (20141027065341)
22460
+  (0.2ms) BEGIN
22461
+  (22.6ms) 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)
22462
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
22463
+  (0.5ms) COMMIT
22464
+ Migrating to CreateTemplates (20141027083603)
22465
+  (6.1ms) BEGIN
22466
+  (18.8ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22467
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
22468
+  (0.6ms) COMMIT
22469
+ Migrating to AddTemplateIdToPages (20141027083633)
22470
+  (6.2ms) BEGIN
22471
+  (0.7ms) ALTER TABLE "kms_pages" ADD "template_id" integer
22472
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
22473
+  (5.8ms) COMMIT
22474
+ Migrating to CreateAssets (20141029145253)
22475
+  (0.3ms) BEGIN
22476
+  (16.5ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22477
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
22478
+  (5.1ms) COMMIT
22479
+ Migrating to AddAncestryToPages (20141031125758)
22480
+  (6.1ms) BEGIN
22481
+  (0.5ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
22482
+  (7.7ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
22483
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
22484
+  (4.7ms) COMMIT
22485
+ Migrating to DeviseCreateUsers (20141031140308)
22486
+  (0.2ms) BEGIN
22487
+  (16.9ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
22488
+  (2.0ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
22489
+  (1.2ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
22490
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
22491
+  (0.5ms) COMMIT
22492
+ Migrating to AddFullpathToPages (20141119084306)
22493
+  (6.0ms) BEGIN
22494
+  (1.3ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
22495
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
22496
+  (6.3ms) COMMIT
22497
+ Migrating to AddRoleToUsers (20141121112652)
22498
+  (0.3ms) BEGIN
22499
+  (0.7ms) ALTER TABLE "kms_users" ADD "role" character varying
22500
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
22501
+  (6.5ms) COMMIT
22502
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
22503
+  (0.2ms) BEGIN
22504
+  (23.0ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
22505
+  (0.4ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
22506
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
22507
+  (1.6ms) COMMIT
22508
+ Migrating to AddHiddenToPage (20141209132901)
22509
+  (0.5ms) BEGIN
22510
+  (24.9ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
22511
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
22512
+  (1.3ms) COMMIT
22513
+ Migrating to AddPositionToKmsPages (20150209120632)
22514
+  (0.3ms) BEGIN
22515
+  (22.5ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
22516
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
22517
+  (1.0ms) COMMIT
22518
+ Migrating to CreateKmsSnippets (20160129100437)
22519
+  (0.3ms) BEGIN
22520
+  (17.2ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22521
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
22522
+  (5.1ms) COMMIT
22523
+ Migrating to CreateKmsSettings (20160712094512)
22524
+  (6.0ms) BEGIN
22525
+  (16.7ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22526
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
22527
+  (0.4ms) COMMIT
22528
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
22529
+  (6.1ms) BEGIN
22530
+  (0.6ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
22531
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
22532
+  (6.1ms) COMMIT
22533
+ 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]]
22534
+  (0.2ms) BEGIN
22535
+  (0.2ms) COMMIT
22536
+  (0.3ms) SELECT pg_advisory_unlock(7029803947170562740)
22537
+ Kms::Template Load (0.7ms) SELECT "kms_templates".* FROM "kms_templates"
22538
+ Kms::Page Load (1.0ms) SELECT "kms_pages".* FROM "kms_pages"
22539
+ Kms::Snippet Load (0.8ms) SELECT "kms_snippets".* FROM "kms_snippets"
22540
+  (0.3ms) BEGIN
22541
+  (0.3ms) SAVEPOINT active_record_1
22542
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22543
+ SQL (17.9ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$819sHzmxeAzshr50KN0EoeEmPJ3Ca2PlKaXpwR4WLkybvgjSDwMW."], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22544
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22545
+  (0.3ms) SAVEPOINT active_record_1
22546
+ SQL (0.8ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22547
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22548
+ Processing by Kms::SnippetsController#index as JSON
22549
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
22550
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
22551
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.66ms)
22552
+ Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 1.1ms)
22553
+  (0.4ms) ROLLBACK
22554
+  (0.1ms) BEGIN
22555
+  (0.2ms) SAVEPOINT active_record_1
22556
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22557
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$u4AnywZOeh1zzfmd9D3tre6Gaxs/Lk5YhqmWGJbdQAiyQ48L7WAem"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22558
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22559
+ Processing by Kms::SnippetsController#create as JSON
22560
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
22561
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
22562
+  (0.3ms) SAVEPOINT active_record_1
22563
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
22564
+ Completed 422 Unprocessable Entity in 41ms (Views: 4.4ms | ActiveRecord: 1.0ms)
22565
+  (0.4ms) ROLLBACK
22566
+  (0.2ms) BEGIN
22567
+  (0.2ms) SAVEPOINT active_record_1
22568
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22569
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$QdC3dUxE4Pm26bK1cD2Gq.W9Exo2.BFpGO.fZVrCtPQXdFcVmJkHC"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22570
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22571
+ Processing by Kms::SnippetsController#create as JSON
22572
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
22573
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
22574
+  (0.3ms) SAVEPOINT active_record_1
22575
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22576
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22577
+ Completed 204 No Content in 6ms (ActiveRecord: 1.9ms)
22578
+  (0.2ms) ROLLBACK
22579
+  (0.1ms) BEGIN
22580
+  (0.3ms) SAVEPOINT active_record_1
22581
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22582
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$YSy1YG76uvj88ydhT4ggwOjFc/HH5EJndetIZFiauhf/G3vvTEAPq"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22583
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22584
+  (0.2ms) SAVEPOINT active_record_1
22585
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22586
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22587
+ Processing by Kms::SnippetsController#update as JSON
22588
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
22589
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
22590
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
22591
+  (0.2ms) SAVEPOINT active_record_1
22592
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
22593
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.5ms)
22594
+  (0.2ms) ROLLBACK
22595
+  (0.1ms) BEGIN
22596
+  (0.2ms) SAVEPOINT active_record_1
22597
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22598
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$lJzUQ6BP.SZIHyPRlCarqeN.hafx22dqcXPqR5TzQHW8yvg4RRyTa"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22599
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22600
+  (0.2ms) SAVEPOINT active_record_1
22601
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22602
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22603
+ Processing by Kms::SnippetsController#update as JSON
22604
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
22605
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
22606
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
22607
+  (0.2ms) SAVEPOINT active_record_1
22608
+ SQL (0.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:32:39 UTC], ["id", 4]]
22609
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22610
+ Completed 204 No Content in 8ms (ActiveRecord: 2.0ms)
22611
+  (0.2ms) ROLLBACK
22612
+  (0.1ms) BEGIN
22613
+  (0.3ms) SAVEPOINT active_record_1
22614
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22615
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$CJdAV2GKYgqb7AO6kJfa4ew4dGF0Fz78GNnjG31Kz./5oQKkESi5."], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22616
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22617
+  (0.3ms) SAVEPOINT active_record_1
22618
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22620
+ Processing by Kms::SnippetsController#show as JSON
22621
+ Parameters: {"id"=>"5"}
22622
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
22623
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
22624
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.23ms)
22625
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.9ms)
22626
+  (0.3ms) ROLLBACK
22627
+  (0.3ms) BEGIN
22628
+  (4.2ms) SAVEPOINT active_record_1
22629
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22630
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$w2/z.Dw9NuiFa3/0JvgAPeHdg01aTrd57AUo/Smt2HADLCqWTchxu"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22631
+  (0.5ms) RELEASE SAVEPOINT active_record_1
22632
+  (0.3ms) SAVEPOINT active_record_1
22633
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22634
+  (0.7ms) RELEASE SAVEPOINT active_record_1
22635
+ Processing by Kms::SnippetsController#destroy as JSON
22636
+ Parameters: {"id"=>"6"}
22637
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
22638
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
22639
+  (0.2ms) SAVEPOINT active_record_1
22640
+ SQL (0.5ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
22641
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22642
+ Completed 204 No Content in 6ms (ActiveRecord: 1.8ms)
22643
+  (0.3ms) ROLLBACK
22644
+  (0.2ms) BEGIN
22645
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
22646
+  (0.2ms) SAVEPOINT active_record_1
22647
+ SQL (5.4ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22648
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22649
+  (0.4ms) ROLLBACK
22650
+  (0.2ms) BEGIN
22651
+  (0.3ms) ROLLBACK
22652
+  (0.2ms) BEGIN
22653
+  (0.2ms) SAVEPOINT active_record_1
22654
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:32:39 UTC], ["updated_at", 2017-04-14 12:32:39 UTC]]
22655
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22656
+  (0.2ms) ROLLBACK
22657
+  (0.2ms) BEGIN
22658
+  (0.2ms) ROLLBACK
22659
+  (0.1ms) BEGIN
22660
+  (0.2ms) ROLLBACK
22661
+  (0.2ms) BEGIN
22662
+  (0.3ms) ROLLBACK
22663
+  (192.9ms) DROP DATABASE IF EXISTS "kms_test"
22664
+  (579.9ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
22665
+  (8.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22666
+ 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]]
22667
+  (0.3ms) BEGIN
22668
+ SQL (6.2ms) 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-04-14 12:33:25 UTC], ["updated_at", 2017-04-14 12:33:25 UTC]]
22669
+  (6.2ms) COMMIT
22670
+  (20.8ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22671
+  (0.3ms) SELECT pg_try_advisory_lock(7029803947170562740);
22672
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
22673
+ Migrating to CreatePages (20141027065341)
22674
+  (0.2ms) BEGIN
22675
+  (23.2ms) 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)
22676
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
22677
+  (0.8ms) COMMIT
22678
+ Migrating to CreateTemplates (20141027083603)
22679
+  (6.2ms) BEGIN
22680
+  (17.9ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22681
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
22682
+  (0.8ms) COMMIT
22683
+ Migrating to AddTemplateIdToPages (20141027083633)
22684
+  (5.8ms) BEGIN
22685
+  (1.0ms) ALTER TABLE "kms_pages" ADD "template_id" integer
22686
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
22687
+  (6.1ms) COMMIT
22688
+ Migrating to CreateAssets (20141029145253)
22689
+  (0.3ms) BEGIN
22690
+  (16.9ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22691
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
22692
+  (5.5ms) COMMIT
22693
+ Migrating to AddAncestryToPages (20141031125758)
22694
+  (6.2ms) BEGIN
22695
+  (0.7ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
22696
+  (7.0ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
22697
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
22698
+  (4.5ms) COMMIT
22699
+ Migrating to DeviseCreateUsers (20141031140308)
22700
+  (0.3ms) BEGIN
22701
+  (19.2ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
22702
+  (1.9ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
22703
+  (1.3ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
22704
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
22705
+  (0.6ms) COMMIT
22706
+ Migrating to AddFullpathToPages (20141119084306)
22707
+  (6.2ms) BEGIN
22708
+  (0.9ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
22709
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
22710
+  (6.1ms) COMMIT
22711
+ Migrating to AddRoleToUsers (20141121112652)
22712
+  (0.3ms) BEGIN
22713
+  (0.7ms) ALTER TABLE "kms_users" ADD "role" character varying
22714
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
22715
+  (6.1ms) COMMIT
22716
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
22717
+  (0.2ms) BEGIN
22718
+  (25.9ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
22719
+  (0.4ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
22720
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
22721
+  (1.8ms) COMMIT
22722
+ Migrating to AddHiddenToPage (20141209132901)
22723
+  (0.4ms) BEGIN
22724
+  (25.4ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
22725
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
22726
+  (1.6ms) COMMIT
22727
+ Migrating to AddPositionToKmsPages (20150209120632)
22728
+  (0.3ms) BEGIN
22729
+  (23.6ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
22730
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
22731
+  (2.1ms) COMMIT
22732
+ Migrating to CreateKmsSnippets (20160129100437)
22733
+  (0.4ms) BEGIN
22734
+  (16.6ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22735
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
22736
+  (5.2ms) COMMIT
22737
+ Migrating to CreateKmsSettings (20160712094512)
22738
+  (6.1ms) BEGIN
22739
+  (22.6ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22740
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
22741
+  (0.5ms) COMMIT
22742
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
22743
+  (6.3ms) BEGIN
22744
+  (0.9ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
22745
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
22746
+  (6.3ms) COMMIT
22747
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
22748
+  (0.3ms) BEGIN
22749
+  (0.3ms) COMMIT
22750
+  (0.5ms) SELECT pg_advisory_unlock(7029803947170562740)
22751
+ Kms::Template Load (0.8ms) SELECT "kms_templates".* FROM "kms_templates"
22752
+ Kms::Page Load (0.9ms) SELECT "kms_pages".* FROM "kms_pages"
22753
+ Kms::Snippet Load (1.1ms) SELECT "kms_snippets".* FROM "kms_snippets"
22754
+  (0.3ms) BEGIN
22755
+  (0.3ms) SAVEPOINT active_record_1
22756
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22757
+ SQL (24.1ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$L7gwMChjyhv1B6cLNAOh5uXERSmLr1CizdokFSl8Gf2oZ6jOM/Zui"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22758
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22759
+  (0.3ms) SAVEPOINT active_record_1
22760
+ SQL (0.8ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22761
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22762
+ Processing by Kms::SnippetsController#index as JSON
22763
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
22764
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
22765
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.5ms)
22766
+ Completed 200 OK in 20ms (Views: 16.5ms | ActiveRecord: 1.1ms)
22767
+  (0.5ms) ROLLBACK
22768
+  (0.1ms) BEGIN
22769
+  (0.2ms) SAVEPOINT active_record_1
22770
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22771
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$yvpa/P.Xb2W5gkuYRV2JmuXkETWrbknX4Q1eUMfoozIro2pnjGXiS"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22772
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22773
+ Processing by Kms::SnippetsController#create as JSON
22774
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
22775
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
22776
+  (0.2ms) SAVEPOINT active_record_1
22777
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
22778
+ Completed 422 Unprocessable Entity in 42ms (Views: 3.7ms | ActiveRecord: 1.1ms)
22779
+  (0.3ms) ROLLBACK
22780
+  (0.2ms) BEGIN
22781
+  (0.3ms) SAVEPOINT active_record_1
22782
+ Kms::User Exists (1.1ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22783
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$Y60i4EAWlZ0gWgx9I34WTewvbR6NFDe4SxgaeFIsvlvMol7EklxSy"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22784
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22785
+ Processing by Kms::SnippetsController#create as JSON
22786
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
22787
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
22788
+  (0.2ms) SAVEPOINT active_record_1
22789
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22790
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22791
+ Completed 204 No Content in 5ms (ActiveRecord: 1.4ms)
22792
+  (0.2ms) ROLLBACK
22793
+  (0.2ms) BEGIN
22794
+  (0.2ms) SAVEPOINT active_record_1
22795
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22796
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$nqD2iW2PE7BgABXqQL8b0eXRg6Ri55G0kUo8dQJ54jUI6gzICPGy6"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22797
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22798
+  (0.2ms) SAVEPOINT active_record_1
22799
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22800
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22801
+ Processing by Kms::SnippetsController#update as JSON
22802
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
22803
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
22804
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
22805
+  (0.2ms) SAVEPOINT active_record_1
22806
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
22807
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.6ms | ActiveRecord: 1.3ms)
22808
+  (0.3ms) ROLLBACK
22809
+  (0.2ms) BEGIN
22810
+  (0.3ms) SAVEPOINT active_record_1
22811
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22812
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$0R7Kmnf3Pcs6V2IpXQGeEuX9JlbGolcY8lSCS7pcZHFxdzLrDPCI6"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22813
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22814
+  (0.2ms) SAVEPOINT active_record_1
22815
+ SQL (0.8ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22817
+ Processing by Kms::SnippetsController#update as JSON
22818
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
22819
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
22820
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
22821
+  (0.2ms) SAVEPOINT active_record_1
22822
+ SQL (0.9ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:33:26 UTC], ["id", 4]]
22823
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22824
+ Completed 204 No Content in 10ms (ActiveRecord: 2.7ms)
22825
+  (0.4ms) ROLLBACK
22826
+  (0.2ms) BEGIN
22827
+  (0.2ms) SAVEPOINT active_record_1
22828
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22829
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$NOOOfjJMCVvECnvv2aRJTeEKN2Az3wyyEPjAidv/2YB.r9lD6EVTW"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22830
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22831
+  (0.2ms) SAVEPOINT active_record_1
22832
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22833
+  (0.3ms) RELEASE SAVEPOINT active_record_1
22834
+ Processing by Kms::SnippetsController#show as JSON
22835
+ Parameters: {"id"=>"5"}
22836
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
22837
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
22838
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.3ms)
22839
+ Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 1.1ms)
22840
+  (0.3ms) ROLLBACK
22841
+  (0.3ms) BEGIN
22842
+  (0.2ms) SAVEPOINT active_record_1
22843
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22844
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$O1f81zesuujUI38lEVLGCOW4UL7Nl2Y79YIl37PyJP1K38ohE1qaW"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22845
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22846
+  (0.2ms) SAVEPOINT active_record_1
22847
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22848
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22849
+ Processing by Kms::SnippetsController#destroy as JSON
22850
+ Parameters: {"id"=>"6"}
22851
+ Kms::User Load (0.3ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
22852
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
22853
+  (0.2ms) SAVEPOINT active_record_1
22854
+ SQL (0.4ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
22855
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22856
+ Completed 204 No Content in 4ms (ActiveRecord: 1.5ms)
22857
+  (0.2ms) ROLLBACK
22858
+  (0.2ms) BEGIN
22859
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
22860
+  (0.3ms) SAVEPOINT active_record_1
22861
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22862
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22863
+  (0.4ms) ROLLBACK
22864
+  (0.2ms) BEGIN
22865
+  (0.3ms) ROLLBACK
22866
+  (0.2ms) BEGIN
22867
+  (0.2ms) SAVEPOINT active_record_1
22868
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:33:26 UTC], ["updated_at", 2017-04-14 12:33:26 UTC]]
22869
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22870
+  (0.2ms) ROLLBACK
22871
+  (0.1ms) BEGIN
22872
+  (0.1ms) ROLLBACK
22873
+  (0.2ms) BEGIN
22874
+  (0.2ms) ROLLBACK
22875
+  (0.2ms) BEGIN
22876
+  (0.3ms) ROLLBACK
22877
+  (184.4ms) DROP DATABASE IF EXISTS "kms_test"
22878
+  (550.5ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
22879
+  (6.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22880
+ 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]]
22881
+  (0.3ms) BEGIN
22882
+ SQL (6.5ms) 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-04-14 12:34:43 UTC], ["updated_at", 2017-04-14 12:34:43 UTC]]
22883
+  (5.7ms) COMMIT
22884
+  (20.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
22885
+  (0.6ms) SELECT pg_try_advisory_lock(7029803947170562740);
22886
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
22887
+ Migrating to CreatePages (20141027065341)
22888
+  (0.2ms) BEGIN
22889
+  (24.2ms) 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)
22890
+ SQL (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
22891
+  (0.9ms) COMMIT
22892
+ Migrating to CreateTemplates (20141027083603)
22893
+  (5.9ms) BEGIN
22894
+  (17.9ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22895
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
22896
+  (0.5ms) COMMIT
22897
+ Migrating to AddTemplateIdToPages (20141027083633)
22898
+  (6.1ms) BEGIN
22899
+  (0.6ms) ALTER TABLE "kms_pages" ADD "template_id" integer
22900
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
22901
+  (6.1ms) COMMIT
22902
+ Migrating to CreateAssets (20141029145253)
22903
+  (0.3ms) BEGIN
22904
+  (16.3ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22905
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
22906
+  (5.2ms) COMMIT
22907
+ Migrating to AddAncestryToPages (20141031125758)
22908
+  (6.2ms) BEGIN
22909
+  (0.5ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
22910
+  (7.0ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
22911
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
22912
+  (5.8ms) COMMIT
22913
+ Migrating to DeviseCreateUsers (20141031140308)
22914
+  (0.3ms) BEGIN
22915
+  (16.6ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
22916
+  (5.8ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
22917
+  (1.3ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
22918
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
22919
+  (0.5ms) COMMIT
22920
+ Migrating to AddFullpathToPages (20141119084306)
22921
+  (6.1ms) BEGIN
22922
+  (0.6ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
22923
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
22924
+  (6.0ms) COMMIT
22925
+ Migrating to AddRoleToUsers (20141121112652)
22926
+  (0.2ms) BEGIN
22927
+  (0.5ms) ALTER TABLE "kms_users" ADD "role" character varying
22928
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
22929
+  (5.6ms) COMMIT
22930
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
22931
+  (0.2ms) BEGIN
22932
+  (24.4ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
22933
+  (1.1ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
22934
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
22935
+  (1.7ms) COMMIT
22936
+ Migrating to AddHiddenToPage (20141209132901)
22937
+  (0.5ms) BEGIN
22938
+  (22.8ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
22939
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
22940
+  (1.0ms) COMMIT
22941
+ Migrating to AddPositionToKmsPages (20150209120632)
22942
+  (0.3ms) BEGIN
22943
+  (23.2ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
22944
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
22945
+  (6.8ms) COMMIT
22946
+ Migrating to CreateKmsSnippets (20160129100437)
22947
+  (0.6ms) BEGIN
22948
+  (15.9ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22949
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
22950
+  (5.1ms) COMMIT
22951
+ Migrating to CreateKmsSettings (20160712094512)
22952
+  (6.1ms) BEGIN
22953
+  (18.5ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
22954
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
22955
+  (0.4ms) COMMIT
22956
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
22957
+  (6.1ms) BEGIN
22958
+  (0.6ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
22959
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
22960
+  (6.1ms) COMMIT
22961
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
22962
+  (0.3ms) BEGIN
22963
+  (0.3ms) COMMIT
22964
+  (0.4ms) SELECT pg_advisory_unlock(7029803947170562740)
22965
+ Kms::Template Load (1.1ms) SELECT "kms_templates".* FROM "kms_templates"
22966
+ Kms::Page Load (0.8ms) SELECT "kms_pages".* FROM "kms_pages"
22967
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
22968
+  (0.3ms) BEGIN
22969
+  (0.3ms) SAVEPOINT active_record_1
22970
+ Kms::User Exists (1.0ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22971
+ SQL (18.2ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$9RYNCy7JVv0tWlLgY4stpuAv/AWe7Ch5M1xkAL8do9Bd2dyzaDSo."], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
22972
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22973
+  (0.3ms) SAVEPOINT active_record_1
22974
+ SQL (1.0ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
22975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22976
+ Processing by Kms::SnippetsController#index as JSON
22977
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
22978
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
22979
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.53ms)
22980
+ Completed 200 OK in 20ms (Views: 16.1ms | ActiveRecord: 1.1ms)
22981
+  (0.4ms) ROLLBACK
22982
+  (0.1ms) BEGIN
22983
+  (0.3ms) SAVEPOINT active_record_1
22984
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22985
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$vyGuTcp5HBLEkobaTpxWUOLJjOrlL.7eiRasgPMDNAYNKcZspTDyq"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
22986
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22987
+ Processing by Kms::SnippetsController#create as JSON
22988
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
22989
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
22990
+  (0.3ms) SAVEPOINT active_record_1
22991
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
22992
+ Completed 422 Unprocessable Entity in 43ms (Views: 3.7ms | ActiveRecord: 1.1ms)
22993
+  (0.4ms) ROLLBACK
22994
+  (0.1ms) BEGIN
22995
+  (0.3ms) SAVEPOINT active_record_1
22996
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
22997
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$EgCrtlmWD2kpuv6/c8IBKOTq/MMTt/M3ZOJ5s0A4iMflte00FmezC"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
22998
+  (0.2ms) RELEASE SAVEPOINT active_record_1
22999
+ Processing by Kms::SnippetsController#create as JSON
23000
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
23001
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
23002
+  (0.3ms) SAVEPOINT active_record_1
23003
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23004
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23005
+ Completed 204 No Content in 6ms (ActiveRecord: 1.7ms)
23006
+  (0.2ms) ROLLBACK
23007
+  (0.1ms) BEGIN
23008
+  (0.2ms) SAVEPOINT active_record_1
23009
+ Kms::User Exists (1.1ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23010
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$hj9gvkINjTdhuRzbJmHpaOx9XKN0iPgFqWR5cB3vcwQOEfwfcplTO"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23011
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23012
+  (0.2ms) SAVEPOINT active_record_1
23013
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23014
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23015
+ Processing by Kms::SnippetsController#update as JSON
23016
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
23017
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
23018
+ Kms::Snippet Load (0.7ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
23019
+  (0.3ms) SAVEPOINT active_record_1
23020
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
23021
+ Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 1.7ms)
23022
+  (0.3ms) ROLLBACK
23023
+  (0.1ms) BEGIN
23024
+  (0.2ms) SAVEPOINT active_record_1
23025
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23026
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$9C7lAvty78ufEiVYbPDL5eyXWuHmwzyoV28spr1ketiLy5j/ZxsUa"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23027
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23028
+  (0.2ms) SAVEPOINT active_record_1
23029
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23030
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23031
+ Processing by Kms::SnippetsController#update as JSON
23032
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
23033
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
23034
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
23035
+  (0.2ms) SAVEPOINT active_record_1
23036
+ SQL (0.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:34:44 UTC], ["id", 4]]
23037
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23038
+ Completed 204 No Content in 8ms (ActiveRecord: 2.1ms)
23039
+  (0.2ms) ROLLBACK
23040
+  (0.2ms) BEGIN
23041
+  (0.2ms) SAVEPOINT active_record_1
23042
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23043
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$aIITbJ1jjv28HEJJ8hfYEO7uTjWZyd6b5f1LT5MCJPKgfTZMSRsmK"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23044
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23045
+  (0.2ms) SAVEPOINT active_record_1
23046
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23047
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23048
+ Processing by Kms::SnippetsController#show as JSON
23049
+ Parameters: {"id"=>"5"}
23050
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
23051
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
23052
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.23ms)
23053
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.9ms)
23054
+  (0.3ms) ROLLBACK
23055
+  (0.1ms) BEGIN
23056
+  (0.2ms) SAVEPOINT active_record_1
23057
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23058
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$RlD7t5UO9ZfqvtbxYRji2eBzXzi5oIM3LennqSoHFeUr4D2edd6H."], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23059
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23060
+  (0.3ms) SAVEPOINT active_record_1
23061
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23062
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23063
+ Processing by Kms::SnippetsController#destroy as JSON
23064
+ Parameters: {"id"=>"6"}
23065
+ Kms::User Load (0.4ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
23066
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
23067
+  (0.2ms) SAVEPOINT active_record_1
23068
+ SQL (0.4ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
23069
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23070
+ Completed 204 No Content in 5ms (ActiveRecord: 1.7ms)
23071
+  (0.2ms) ROLLBACK
23072
+  (0.1ms) BEGIN
23073
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
23074
+  (0.4ms) SAVEPOINT active_record_1
23075
+ SQL (0.9ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23076
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23077
+  (0.2ms) ROLLBACK
23078
+  (0.2ms) BEGIN
23079
+  (0.2ms) ROLLBACK
23080
+  (0.1ms) BEGIN
23081
+  (0.2ms) SAVEPOINT active_record_1
23082
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:34:44 UTC], ["updated_at", 2017-04-14 12:34:44 UTC]]
23083
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23084
+  (0.2ms) ROLLBACK
23085
+  (0.2ms) BEGIN
23086
+  (0.2ms) ROLLBACK
23087
+  (0.2ms) BEGIN
23088
+  (0.2ms) ROLLBACK
23089
+  (0.1ms) BEGIN
23090
+  (0.3ms) ROLLBACK
23091
+  (190.3ms) DROP DATABASE IF EXISTS "kms_test"
23092
+  (391.0ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
23093
+  (7.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23094
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
23095
+  (0.2ms) BEGIN
23096
+ 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-04-14 12:35:49 UTC], ["updated_at", 2017-04-14 12:35:49 UTC]]
23097
+  (0.4ms) COMMIT
23098
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
23099
+  (0.4ms) SELECT pg_try_advisory_lock(7029803947170562740);
23100
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
23101
+ Migrating to CreatePages (20141027065341)
23102
+  (0.2ms) BEGIN
23103
+  (25.2ms) 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)
23104
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
23105
+  (0.7ms) COMMIT
23106
+ Migrating to CreateTemplates (20141027083603)
23107
+  (6.9ms) BEGIN
23108
+  (16.1ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23109
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
23110
+  (0.5ms) COMMIT
23111
+ Migrating to AddTemplateIdToPages (20141027083633)
23112
+  (5.9ms) BEGIN
23113
+  (1.1ms) ALTER TABLE "kms_pages" ADD "template_id" integer
23114
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
23115
+  (11.2ms) COMMIT
23116
+ Migrating to CreateAssets (20141029145253)
23117
+  (0.6ms) BEGIN
23118
+  (20.9ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23119
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
23120
+  (0.4ms) COMMIT
23121
+ Migrating to AddAncestryToPages (20141031125758)
23122
+  (6.1ms) BEGIN
23123
+  (0.7ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
23124
+  (7.0ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
23125
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
23126
+  (4.8ms) COMMIT
23127
+ Migrating to DeviseCreateUsers (20141031140308)
23128
+  (0.4ms) BEGIN
23129
+  (17.4ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
23130
+  (2.4ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
23131
+  (1.7ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
23132
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
23133
+  (0.5ms) COMMIT
23134
+ Migrating to AddFullpathToPages (20141119084306)
23135
+  (11.2ms) BEGIN
23136
+  (1.1ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
23137
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
23138
+  (6.2ms) COMMIT
23139
+ Migrating to AddRoleToUsers (20141121112652)
23140
+  (0.3ms) BEGIN
23141
+  (0.7ms) ALTER TABLE "kms_users" ADD "role" character varying
23142
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
23143
+  (6.3ms) COMMIT
23144
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
23145
+  (0.3ms) BEGIN
23146
+  (27.0ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
23147
+  (0.5ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
23148
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
23149
+  (5.8ms) COMMIT
23150
+ Migrating to AddHiddenToPage (20141209132901)
23151
+  (0.4ms) BEGIN
23152
+  (24.6ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
23153
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
23154
+  (1.5ms) COMMIT
23155
+ Migrating to AddPositionToKmsPages (20150209120632)
23156
+  (0.5ms) BEGIN
23157
+  (24.6ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
23158
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
23159
+  (1.2ms) COMMIT
23160
+ Migrating to CreateKmsSnippets (20160129100437)
23161
+  (0.4ms) BEGIN
23162
+  (19.3ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23163
+ SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
23164
+  (6.4ms) COMMIT
23165
+ Migrating to CreateKmsSettings (20160712094512)
23166
+  (5.7ms) BEGIN
23167
+  (20.9ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23168
+ SQL (5.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
23169
+  (0.8ms) COMMIT
23170
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
23171
+  (5.9ms) BEGIN
23172
+  (0.5ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
23173
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
23174
+  (5.9ms) COMMIT
23175
+ ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
23176
+  (0.3ms) BEGIN
23177
+  (1.3ms) COMMIT
23178
+  (0.6ms) SELECT pg_advisory_unlock(7029803947170562740)
23179
+ Kms::Template Load (1.4ms) SELECT "kms_templates".* FROM "kms_templates"
23180
+ Kms::Page Load (0.8ms) SELECT "kms_pages".* FROM "kms_pages"
23181
+ Kms::Snippet Load (1.3ms) SELECT "kms_snippets".* FROM "kms_snippets"
23182
+  (0.3ms) BEGIN
23183
+  (0.5ms) SAVEPOINT active_record_1
23184
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23185
+ SQL (17.9ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$NrhM2kMPFgveNU0Svz1Pe.Ym.dzzQ.CCpwhRIeqzV9NM.cS/3vU0G"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23186
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23187
+  (0.3ms) SAVEPOINT active_record_1
23188
+ SQL (0.8ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23189
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23190
+ Processing by Kms::SnippetsController#index as JSON
23191
+ Kms::User Load (1.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
23192
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
23193
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.49ms)
23194
+ Completed 200 OK in 21ms (Views: 15.6ms | ActiveRecord: 2.0ms)
23195
+  (0.7ms) ROLLBACK
23196
+  (0.1ms) BEGIN
23197
+  (0.3ms) SAVEPOINT active_record_1
23198
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23199
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$6jhZJ35EKtRCYP.cFMyvhuqH6PAH9JrAsKUfWBahDNGmZ4Kdd/mqu"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23200
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23201
+ Processing by Kms::SnippetsController#create as JSON
23202
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
23203
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
23204
+  (0.2ms) SAVEPOINT active_record_1
23205
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
23206
+ Completed 422 Unprocessable Entity in 45ms (Views: 6.2ms | ActiveRecord: 1.0ms)
23207
+  (0.3ms) ROLLBACK
23208
+  (0.1ms) BEGIN
23209
+  (0.3ms) SAVEPOINT active_record_1
23210
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23211
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$93nPBslQClT/GpvBr.3TWeyFUyOZ.7AFuPvoEY5MBiiGPsG8BdtZ6"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23212
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23213
+ Processing by Kms::SnippetsController#create as JSON
23214
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
23215
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
23216
+  (0.2ms) SAVEPOINT active_record_1
23217
+ SQL (0.8ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23218
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23219
+ Completed 204 No Content in 6ms (ActiveRecord: 1.8ms)
23220
+  (0.2ms) ROLLBACK
23221
+  (0.1ms) BEGIN
23222
+  (0.2ms) SAVEPOINT active_record_1
23223
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23224
+ SQL (0.9ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$oukexbcl75qi85oG411Wv.9rnB1KW922I.An9tiy6uqsATu5HrRoW"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23225
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23226
+  (0.2ms) SAVEPOINT active_record_1
23227
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23228
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23229
+ Processing by Kms::SnippetsController#update as JSON
23230
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
23231
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
23232
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
23233
+  (0.3ms) SAVEPOINT active_record_1
23234
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
23235
+ Completed 422 Unprocessable Entity in 11ms (Views: 0.5ms | ActiveRecord: 1.9ms)
23236
+  (0.3ms) ROLLBACK
23237
+  (0.1ms) BEGIN
23238
+  (0.2ms) SAVEPOINT active_record_1
23239
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23240
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$lTweMNbs6f9vs.wo4qwMhu7BAAnToVZ6gJKlqry2Atem/2N8ZnQUS"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23241
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23242
+  (0.2ms) SAVEPOINT active_record_1
23243
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23245
+ Processing by Kms::SnippetsController#update as JSON
23246
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
23247
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
23248
+ Kms::Snippet Load (0.9ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
23249
+  (0.3ms) SAVEPOINT active_record_1
23250
+ SQL (0.8ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:35:50 UTC], ["id", 4]]
23251
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23252
+ Completed 204 No Content in 9ms (ActiveRecord: 2.6ms)
23253
+  (0.3ms) ROLLBACK
23254
+  (0.2ms) BEGIN
23255
+  (0.3ms) SAVEPOINT active_record_1
23256
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23257
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$tju4rc3efV.0H7ZZOju8OONhgj1lUNLFYf.p/iw9TOQh/StqqwElW"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23258
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23259
+  (0.2ms) SAVEPOINT active_record_1
23260
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23261
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23262
+ Processing by Kms::SnippetsController#show as JSON
23263
+ Parameters: {"id"=>"5"}
23264
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
23265
+ Kms::Snippet Load (0.7ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
23266
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.3ms)
23267
+ Completed 200 OK in 5ms (Views: 1.0ms | ActiveRecord: 1.4ms)
23268
+  (0.5ms) ROLLBACK
23269
+  (0.1ms) BEGIN
23270
+  (0.2ms) SAVEPOINT active_record_1
23271
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23272
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$rnbrp/w8EUAzbgjY18zMq.ZE7rbOM5F1/1bGdSbtvVNQzY/86LYI."], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23273
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23274
+  (0.2ms) SAVEPOINT active_record_1
23275
+ SQL (1.0ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23276
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23277
+ Processing by Kms::SnippetsController#destroy as JSON
23278
+ Parameters: {"id"=>"6"}
23279
+ Kms::User Load (0.3ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
23280
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
23281
+  (0.2ms) SAVEPOINT active_record_1
23282
+ SQL (0.9ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
23283
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23284
+ Completed 204 No Content in 6ms (ActiveRecord: 2.0ms)
23285
+  (0.2ms) ROLLBACK
23286
+  (0.2ms) BEGIN
23287
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
23288
+  (0.2ms) SAVEPOINT active_record_1
23289
+ SQL (6.3ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23290
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23291
+  (0.3ms) ROLLBACK
23292
+  (0.2ms) BEGIN
23293
+  (0.2ms) ROLLBACK
23294
+  (0.2ms) BEGIN
23295
+  (0.5ms) SAVEPOINT active_record_1
23296
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:35:50 UTC], ["updated_at", 2017-04-14 12:35:50 UTC]]
23297
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23298
+  (0.3ms) ROLLBACK
23299
+  (0.2ms) BEGIN
23300
+  (0.2ms) ROLLBACK
23301
+  (0.3ms) BEGIN
23302
+  (0.3ms) ROLLBACK
23303
+  (0.1ms) BEGIN
23304
+  (0.1ms) ROLLBACK
23305
+  (189.0ms) DROP DATABASE IF EXISTS "kms_test"
23306
+  (548.0ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
23307
+  (9.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23308
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
23309
+  (0.3ms) BEGIN
23310
+ SQL (6.1ms) 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-04-14 12:36:27 UTC], ["updated_at", 2017-04-14 12:36:27 UTC]]
23311
+  (6.3ms) COMMIT
23312
+  (21.0ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
23313
+  (0.3ms) SELECT pg_try_advisory_lock(7029803947170562740);
23314
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
23315
+ Migrating to CreatePages (20141027065341)
23316
+  (0.2ms) BEGIN
23317
+  (24.2ms) 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)
23318
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
23319
+  (0.5ms) COMMIT
23320
+ Migrating to CreateTemplates (20141027083603)
23321
+  (6.5ms) BEGIN
23322
+  (16.9ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23323
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
23324
+  (0.5ms) COMMIT
23325
+ Migrating to AddTemplateIdToPages (20141027083633)
23326
+  (6.0ms) BEGIN
23327
+  (0.9ms) ALTER TABLE "kms_pages" ADD "template_id" integer
23328
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
23329
+  (5.6ms) COMMIT
23330
+ Migrating to CreateAssets (20141029145253)
23331
+  (0.2ms) BEGIN
23332
+  (16.3ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23333
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
23334
+  (6.2ms) COMMIT
23335
+ Migrating to AddAncestryToPages (20141031125758)
23336
+  (6.2ms) BEGIN
23337
+  (0.5ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
23338
+  (7.2ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
23339
+ SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
23340
+  (5.4ms) COMMIT
23341
+ Migrating to DeviseCreateUsers (20141031140308)
23342
+  (0.2ms) BEGIN
23343
+  (16.6ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
23344
+  (2.7ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
23345
+  (1.4ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
23346
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
23347
+  (1.6ms) COMMIT
23348
+ Migrating to AddFullpathToPages (20141119084306)
23349
+  (6.9ms) BEGIN
23350
+  (1.0ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
23351
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
23352
+  (5.7ms) COMMIT
23353
+ Migrating to AddRoleToUsers (20141121112652)
23354
+  (0.3ms) BEGIN
23355
+  (0.7ms) ALTER TABLE "kms_users" ADD "role" character varying
23356
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
23357
+  (6.1ms) COMMIT
23358
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
23359
+  (0.2ms) BEGIN
23360
+  (23.6ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
23361
+  (0.5ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
23362
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
23363
+  (1.2ms) COMMIT
23364
+ Migrating to AddHiddenToPage (20141209132901)
23365
+  (0.3ms) BEGIN
23366
+  (22.5ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
23367
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
23368
+  (1.1ms) COMMIT
23369
+ Migrating to AddPositionToKmsPages (20150209120632)
23370
+  (0.3ms) BEGIN
23371
+  (23.5ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
23372
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
23373
+  (1.0ms) COMMIT
23374
+ Migrating to CreateKmsSnippets (20160129100437)
23375
+  (0.3ms) BEGIN
23376
+  (16.7ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23377
+ SQL (10.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
23378
+  (28.4ms) COMMIT
23379
+ Migrating to CreateKmsSettings (20160712094512)
23380
+  (6.0ms) BEGIN
23381
+  (15.9ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23382
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
23383
+  (1.1ms) COMMIT
23384
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
23385
+  (6.0ms) BEGIN
23386
+  (1.2ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
23387
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
23388
+  (6.2ms) COMMIT
23389
+ 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]]
23390
+  (0.2ms) BEGIN
23391
+  (0.3ms) COMMIT
23392
+  (0.5ms) SELECT pg_advisory_unlock(7029803947170562740)
23393
+ Kms::Template Load (0.7ms) SELECT "kms_templates".* FROM "kms_templates"
23394
+ Kms::Page Load (1.2ms) SELECT "kms_pages".* FROM "kms_pages"
23395
+ Kms::Snippet Load (1.1ms) SELECT "kms_snippets".* FROM "kms_snippets"
23396
+  (0.3ms) BEGIN
23397
+  (0.3ms) SAVEPOINT active_record_1
23398
+ Kms::User Exists (1.0ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23399
+ SQL (17.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$eoV6.05Wazqv8Yp03/rBauINlqF2KMtK8H3SpYtcdIHxzBZZrUtZ."], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23400
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23401
+  (0.3ms) SAVEPOINT active_record_1
23402
+ SQL (1.1ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23403
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23404
+ Processing by Kms::SnippetsController#index as JSON
23405
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
23406
+ Kms::Snippet Load (1.1ms) SELECT "kms_snippets".* FROM "kms_snippets"
23407
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.54ms)
23408
+ Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 1.7ms)
23409
+  (0.5ms) ROLLBACK
23410
+  (0.2ms) BEGIN
23411
+  (0.2ms) SAVEPOINT active_record_1
23412
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23413
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$onAtzHfmRjvIvC2q3PR/ueTvzb1.S6/4eZBrionbEY6uxRLoEzwbK"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23414
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23415
+ Processing by Kms::SnippetsController#create as JSON
23416
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
23417
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
23418
+  (0.3ms) SAVEPOINT active_record_1
23419
+  (4.8ms) ROLLBACK TO SAVEPOINT active_record_1
23420
+ Completed 422 Unprocessable Entity in 71ms (Views: 7.9ms | ActiveRecord: 5.8ms)
23421
+  (0.3ms) ROLLBACK
23422
+  (0.2ms) BEGIN
23423
+  (0.4ms) SAVEPOINT active_record_1
23424
+ Kms::User Exists (2.8ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23425
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$Tsjao485ILThq4KO6AvdpO/pQ3uDI3K8Bkks37JEqjGUOiIbtynk."], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23426
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23427
+ Processing by Kms::SnippetsController#create as JSON
23428
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
23429
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
23430
+  (0.2ms) SAVEPOINT active_record_1
23431
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23432
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23433
+ Completed 204 No Content in 5ms (ActiveRecord: 1.4ms)
23434
+  (0.2ms) ROLLBACK
23435
+  (0.2ms) BEGIN
23436
+  (0.3ms) SAVEPOINT active_record_1
23437
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23438
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$1TyC6W9fEuoI8I3RPpHHzOurJT5y4axOu4NR96bMW9LQruFQ0UCp."], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23439
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23440
+  (0.2ms) SAVEPOINT active_record_1
23441
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23442
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23443
+ Processing by Kms::SnippetsController#update as JSON
23444
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
23445
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
23446
+ Kms::Snippet Load (0.7ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
23447
+  (0.3ms) SAVEPOINT active_record_1
23448
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
23449
+ Completed 422 Unprocessable Entity in 10ms (Views: 0.5ms | ActiveRecord: 1.6ms)
23450
+  (0.4ms) ROLLBACK
23451
+  (0.1ms) BEGIN
23452
+  (0.2ms) SAVEPOINT active_record_1
23453
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23454
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$usG9KooK69RHxeHYd.GD7ufdjZxu.N6ju1YNUaxaPHgq1GT/o1Z1e"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23455
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23456
+  (0.2ms) SAVEPOINT active_record_1
23457
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23458
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23459
+ Processing by Kms::SnippetsController#update as JSON
23460
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
23461
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
23462
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
23463
+  (0.2ms) SAVEPOINT active_record_1
23464
+ SQL (0.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:36:28 UTC], ["id", 4]]
23465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23466
+ Completed 204 No Content in 7ms (ActiveRecord: 2.1ms)
23467
+  (0.3ms) ROLLBACK
23468
+  (0.1ms) BEGIN
23469
+  (0.2ms) SAVEPOINT active_record_1
23470
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23471
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$l5J2bD2Q2AYFBDZDgRAfc.1qijwmFSxcbVMka5TkD.B/axk7Hatda"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23472
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23473
+  (0.2ms) SAVEPOINT active_record_1
23474
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23475
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23476
+ Processing by Kms::SnippetsController#show as JSON
23477
+ Parameters: {"id"=>"5"}
23478
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
23479
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
23480
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.23ms)
23481
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.9ms)
23482
+  (0.3ms) ROLLBACK
23483
+  (0.1ms) BEGIN
23484
+  (0.2ms) SAVEPOINT active_record_1
23485
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23486
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$UIBKiszkEpEgjJSlPwB7Iu2t7c36cdNUeqT4WdzGhmGsUeL9Z/8ae"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23487
+  (0.8ms) RELEASE SAVEPOINT active_record_1
23488
+  (0.2ms) SAVEPOINT active_record_1
23489
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23490
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23491
+ Processing by Kms::SnippetsController#destroy as JSON
23492
+ Parameters: {"id"=>"6"}
23493
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
23494
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
23495
+  (0.2ms) SAVEPOINT active_record_1
23496
+ SQL (0.7ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
23497
+  (0.5ms) RELEASE SAVEPOINT active_record_1
23498
+ Completed 204 No Content in 7ms (ActiveRecord: 2.6ms)
23499
+  (0.2ms) ROLLBACK
23500
+  (0.1ms) BEGIN
23501
+ Kms::Settings Load (0.6ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
23502
+  (0.2ms) SAVEPOINT active_record_1
23503
+ SQL (1.1ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23504
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23505
+  (0.3ms) ROLLBACK
23506
+  (0.2ms) BEGIN
23507
+  (0.1ms) ROLLBACK
23508
+  (0.1ms) BEGIN
23509
+  (0.2ms) SAVEPOINT active_record_1
23510
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:28 UTC], ["updated_at", 2017-04-14 12:36:28 UTC]]
23511
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23512
+  (0.2ms) ROLLBACK
23513
+  (0.2ms) BEGIN
23514
+  (0.2ms) ROLLBACK
23515
+  (194.8ms) DROP DATABASE IF EXISTS "kms_test"
23516
+  (607.1ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
23517
+  (6.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23518
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
23519
+  (0.3ms) BEGIN
23520
+ SQL (6.6ms) 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-04-14 12:36:51 UTC], ["updated_at", 2017-04-14 12:36:51 UTC]]
23521
+  (6.2ms) COMMIT
23522
+  (20.5ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
23523
+  (0.3ms) SELECT pg_try_advisory_lock(7029803947170562740);
23524
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
23525
+ Migrating to CreatePages (20141027065341)
23526
+  (0.3ms) BEGIN
23527
+  (23.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)
23528
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
23529
+  (0.5ms) COMMIT
23530
+ Migrating to CreateTemplates (20141027083603)
23531
+  (6.1ms) BEGIN
23532
+  (17.3ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23533
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
23534
+  (0.5ms) COMMIT
23535
+ Migrating to AddTemplateIdToPages (20141027083633)
23536
+  (6.1ms) BEGIN
23537
+  (0.5ms) ALTER TABLE "kms_pages" ADD "template_id" integer
23538
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
23539
+  (5.7ms) COMMIT
23540
+ Migrating to CreateAssets (20141029145253)
23541
+  (0.2ms) BEGIN
23542
+  (16.1ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23543
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
23544
+  (6.2ms) COMMIT
23545
+ Migrating to AddAncestryToPages (20141031125758)
23546
+  (6.2ms) BEGIN
23547
+  (0.7ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
23548
+  (7.3ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
23549
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
23550
+  (5.0ms) COMMIT
23551
+ Migrating to DeviseCreateUsers (20141031140308)
23552
+  (0.2ms) BEGIN
23553
+  (16.2ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
23554
+  (5.8ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
23555
+  (1.2ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
23556
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
23557
+  (6.3ms) COMMIT
23558
+ Migrating to AddFullpathToPages (20141119084306)
23559
+  (6.3ms) BEGIN
23560
+  (0.7ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
23561
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
23562
+  (6.4ms) COMMIT
23563
+ Migrating to AddRoleToUsers (20141121112652)
23564
+  (0.2ms) BEGIN
23565
+  (0.5ms) ALTER TABLE "kms_users" ADD "role" character varying
23566
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
23567
+  (6.2ms) COMMIT
23568
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
23569
+  (0.3ms) BEGIN
23570
+  (25.1ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
23571
+  (0.6ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
23572
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
23573
+  (1.3ms) COMMIT
23574
+ Migrating to AddHiddenToPage (20141209132901)
23575
+  (0.3ms) BEGIN
23576
+  (23.6ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
23577
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
23578
+  (1.0ms) COMMIT
23579
+ Migrating to AddPositionToKmsPages (20150209120632)
23580
+  (0.5ms) BEGIN
23581
+  (24.5ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
23582
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
23583
+  (1.2ms) COMMIT
23584
+ Migrating to CreateKmsSnippets (20160129100437)
23585
+  (0.3ms) BEGIN
23586
+  (16.6ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23587
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
23588
+  (5.1ms) COMMIT
23589
+ Migrating to CreateKmsSettings (20160712094512)
23590
+  (6.1ms) BEGIN
23591
+  (17.4ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23592
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
23593
+  (0.6ms) COMMIT
23594
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
23595
+  (5.8ms) BEGIN
23596
+  (0.6ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
23597
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
23598
+  (6.2ms) COMMIT
23599
+ 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]]
23600
+  (0.2ms) BEGIN
23601
+  (0.2ms) COMMIT
23602
+  (0.3ms) SELECT pg_advisory_unlock(7029803947170562740)
23603
+ Kms::Template Load (0.7ms) SELECT "kms_templates".* FROM "kms_templates"
23604
+ Kms::Page Load (0.9ms) SELECT "kms_pages".* FROM "kms_pages"
23605
+ Kms::Snippet Load (0.9ms) SELECT "kms_snippets".* FROM "kms_snippets"
23606
+  (0.3ms) BEGIN
23607
+  (0.3ms) SAVEPOINT active_record_1
23608
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23609
+ SQL (18.2ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$2mHt230NQVPu/tU7lKbNYeVWDcd2/Sg3fpdxTg04VfbXFZc9YykRm"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23610
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23611
+  (0.3ms) SAVEPOINT active_record_1
23612
+ SQL (1.0ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23613
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23614
+ Processing by Kms::SnippetsController#index as JSON
23615
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
23616
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
23617
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.53ms)
23618
+ Completed 200 OK in 25ms (Views: 20.6ms | ActiveRecord: 1.2ms)
23619
+  (0.5ms) ROLLBACK
23620
+  (0.2ms) BEGIN
23621
+  (0.2ms) SAVEPOINT active_record_1
23622
+ Kms::User Exists (0.8ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23623
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$9DM6CXxEtry9amy5C4rOMednZXp79NCJnRBFsQekqEayfbCFK16bC"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23624
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23625
+ Processing by Kms::SnippetsController#create as JSON
23626
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
23627
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
23628
+  (0.2ms) SAVEPOINT active_record_1
23629
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
23630
+ Completed 422 Unprocessable Entity in 40ms (Views: 4.3ms | ActiveRecord: 1.2ms)
23631
+  (0.4ms) ROLLBACK
23632
+  (0.2ms) BEGIN
23633
+  (0.2ms) SAVEPOINT active_record_1
23634
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23635
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$nTypGkTi7vpZD/yYa6Hey.qq5tuPSdEOnrAIMNEgu7syDiBzvhKve"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23637
+ Processing by Kms::SnippetsController#create as JSON
23638
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
23639
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
23640
+  (0.2ms) SAVEPOINT active_record_1
23641
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23642
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23643
+ Completed 204 No Content in 5ms (ActiveRecord: 1.4ms)
23644
+  (0.2ms) ROLLBACK
23645
+  (0.1ms) BEGIN
23646
+  (0.2ms) SAVEPOINT active_record_1
23647
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23648
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$tUEPnRSD2S2wTwugm/TIe.PiRahsroDGJn0MriCTXYCm.1bXEBmjm"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23649
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23650
+  (0.2ms) SAVEPOINT active_record_1
23651
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23652
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23653
+ Processing by Kms::SnippetsController#update as JSON
23654
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
23655
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
23656
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
23657
+  (0.2ms) SAVEPOINT active_record_1
23658
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
23659
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms)
23660
+  (0.2ms) ROLLBACK
23661
+  (0.1ms) BEGIN
23662
+  (0.2ms) SAVEPOINT active_record_1
23663
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23664
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$k8lgYoBmYe6v62JMQNBh3.jpJL1ELLVMh4NdxCA612ilu3.x5BQGS"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23665
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23666
+  (0.3ms) SAVEPOINT active_record_1
23667
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23668
+  (0.4ms) RELEASE SAVEPOINT active_record_1
23669
+ Processing by Kms::SnippetsController#update as JSON
23670
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
23671
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
23672
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
23673
+  (0.2ms) SAVEPOINT active_record_1
23674
+ SQL (0.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-14 12:36:52 UTC], ["id", 4]]
23675
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23676
+ Completed 204 No Content in 9ms (ActiveRecord: 2.3ms)
23677
+  (0.2ms) ROLLBACK
23678
+  (0.1ms) BEGIN
23679
+  (0.2ms) SAVEPOINT active_record_1
23680
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23681
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$lwv2i371hugcIMDZwdzuiONUwiCYgxUmI20cCQhAZDp7nXJmTOOxK"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23682
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23683
+  (0.2ms) SAVEPOINT active_record_1
23684
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23685
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23686
+ Processing by Kms::SnippetsController#show as JSON
23687
+ Parameters: {"id"=>"5"}
23688
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
23689
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
23690
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.27ms)
23691
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.9ms)
23692
+  (0.4ms) ROLLBACK
23693
+  (0.1ms) BEGIN
23694
+  (0.2ms) SAVEPOINT active_record_1
23695
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23696
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$imCK4n8KLbJUczqNe3dIqOJhQ8bgmu7w.5/SbQj4x1KPSFT4Lfimm"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23697
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23698
+  (0.2ms) SAVEPOINT active_record_1
23699
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23700
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23701
+ Processing by Kms::SnippetsController#destroy as JSON
23702
+ Parameters: {"id"=>"6"}
23703
+ Kms::User Load (0.3ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
23704
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
23705
+  (0.2ms) SAVEPOINT active_record_1
23706
+ SQL (0.4ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
23707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23708
+ Completed 204 No Content in 5ms (ActiveRecord: 1.5ms)
23709
+  (0.2ms) ROLLBACK
23710
+  (0.1ms) BEGIN
23711
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
23712
+  (0.2ms) SAVEPOINT active_record_1
23713
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23714
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23715
+  (0.3ms) ROLLBACK
23716
+  (0.2ms) BEGIN
23717
+  (0.2ms) ROLLBACK
23718
+  (0.2ms) BEGIN
23719
+  (0.2ms) SAVEPOINT active_record_1
23720
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-14 12:36:52 UTC], ["updated_at", 2017-04-14 12:36:52 UTC]]
23721
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23722
+  (0.2ms) ROLLBACK
23723
+  (0.1ms) BEGIN
23724
+  (0.1ms) ROLLBACK
23725
+  (0.2ms) BEGIN
23726
+  (0.2ms) ROLLBACK
23727
+  (0.1ms) BEGIN
23728
+  (0.1ms) ROLLBACK
23729
+  (220.7ms) DROP DATABASE IF EXISTS "kms_test"
23730
+  (621.8ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
23731
+  (16.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23732
+ 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]]
23733
+  (0.3ms) BEGIN
23734
+ SQL (6.4ms) 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-04-19 06:48:52 UTC], ["updated_at", 2017-04-19 06:48:52 UTC]]
23735
+  (6.2ms) COMMIT
23736
+  (20.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
23737
+  (0.5ms) SELECT pg_try_advisory_lock(7029803947170562740);
23738
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
23739
+ Migrating to CreatePages (20141027065341)
23740
+  (0.3ms) BEGIN
23741
+  (28.8ms) 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)
23742
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
23743
+  (0.7ms) COMMIT
23744
+ Migrating to CreateTemplates (20141027083603)
23745
+  (6.2ms) BEGIN
23746
+  (18.0ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23747
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
23748
+  (0.5ms) COMMIT
23749
+ Migrating to AddTemplateIdToPages (20141027083633)
23750
+  (6.1ms) BEGIN
23751
+  (6.4ms) ALTER TABLE "kms_pages" ADD "template_id" integer
23752
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
23753
+  (6.0ms) COMMIT
23754
+ Migrating to CreateAssets (20141029145253)
23755
+  (0.3ms) BEGIN
23756
+  (17.5ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23757
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
23758
+  (5.1ms) COMMIT
23759
+ Migrating to AddAncestryToPages (20141031125758)
23760
+  (5.9ms) BEGIN
23761
+  (0.5ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
23762
+  (6.5ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
23763
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
23764
+  (5.7ms) COMMIT
23765
+ Migrating to DeviseCreateUsers (20141031140308)
23766
+  (0.2ms) BEGIN
23767
+  (17.6ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
23768
+  (1.8ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
23769
+  (1.1ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
23770
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
23771
+  (0.5ms) COMMIT
23772
+ Migrating to AddFullpathToPages (20141119084306)
23773
+  (5.7ms) BEGIN
23774
+  (0.8ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
23775
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
23776
+  (5.6ms) COMMIT
23777
+ Migrating to AddRoleToUsers (20141121112652)
23778
+  (0.2ms) BEGIN
23779
+  (0.6ms) ALTER TABLE "kms_users" ADD "role" character varying
23780
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
23781
+  (5.9ms) COMMIT
23782
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
23783
+  (0.4ms) BEGIN
23784
+  (27.1ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
23785
+  (0.7ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
23786
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
23787
+  (1.4ms) COMMIT
23788
+ Migrating to AddHiddenToPage (20141209132901)
23789
+  (0.3ms) BEGIN
23790
+  (24.9ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
23791
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
23792
+  (1.4ms) COMMIT
23793
+ Migrating to AddPositionToKmsPages (20150209120632)
23794
+  (0.3ms) BEGIN
23795
+  (23.4ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
23796
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
23797
+  (1.1ms) COMMIT
23798
+ Migrating to CreateKmsSnippets (20160129100437)
23799
+  (0.3ms) BEGIN
23800
+  (18.1ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23801
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
23802
+  (5.1ms) COMMIT
23803
+ Migrating to CreateKmsSettings (20160712094512)
23804
+  (5.6ms) BEGIN
23805
+  (18.5ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23806
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
23807
+  (0.5ms) COMMIT
23808
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
23809
+  (5.8ms) BEGIN
23810
+  (12.6ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
23811
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
23812
+  (6.4ms) COMMIT
23813
+ 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]]
23814
+  (0.3ms) BEGIN
23815
+  (0.3ms) COMMIT
23816
+  (0.5ms) SELECT pg_advisory_unlock(7029803947170562740)
23817
+ Kms::Template Load (0.7ms) SELECT "kms_templates".* FROM "kms_templates"
23818
+ Kms::Page Load (0.8ms) SELECT "kms_pages".* FROM "kms_pages"
23819
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
23820
+  (0.3ms) BEGIN
23821
+  (0.3ms) SAVEPOINT active_record_1
23822
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23823
+ SQL (18.2ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$LcMdywE82VTZ8bDxB.LxluN2Fo13sbNjvWWzJBO/PhhdYBE.8XFoy"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23824
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23825
+  (0.3ms) SAVEPOINT active_record_1
23826
+ SQL (0.8ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23827
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23828
+ Processing by Kms::SnippetsController#index as JSON
23829
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
23830
+ Kms::Snippet Load (0.8ms) SELECT "kms_snippets".* FROM "kms_snippets"
23831
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.61ms)
23832
+ Completed 200 OK in 20ms (Views: 15.9ms | ActiveRecord: 1.3ms)
23833
+  (0.4ms) ROLLBACK
23834
+  (0.2ms) BEGIN
23835
+  (0.2ms) SAVEPOINT active_record_1
23836
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23837
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$EkzwLURFr0fBiIzs2KR4G.FUjE4NJnOrWecvy7GtrcEeRLjcgMRGC"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23838
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23839
+ Processing by Kms::SnippetsController#create as JSON
23840
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
23841
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
23842
+  (0.2ms) SAVEPOINT active_record_1
23843
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
23844
+ Completed 422 Unprocessable Entity in 41ms (Views: 3.7ms | ActiveRecord: 1.0ms)
23845
+  (0.4ms) ROLLBACK
23846
+  (0.1ms) BEGIN
23847
+  (0.3ms) SAVEPOINT active_record_1
23848
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23849
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$DGQDv9Ki04ReUplt1co/kOLPbptQItDpgkf7q1PH8.O/fUdPCF4rm"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23850
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23851
+ Processing by Kms::SnippetsController#create as JSON
23852
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
23853
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
23854
+  (0.2ms) SAVEPOINT active_record_1
23855
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23856
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23857
+ Completed 204 No Content in 5ms (ActiveRecord: 1.4ms)
23858
+  (0.2ms) ROLLBACK
23859
+  (0.1ms) BEGIN
23860
+  (0.2ms) SAVEPOINT active_record_1
23861
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23862
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$QP2MyU4zS29NEx6C.WSQMu7jv0JJzA4VE0RrrfAYKFaZmV/Ojzwpe"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23863
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23864
+  (0.2ms) SAVEPOINT active_record_1
23865
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23866
+  (0.3ms) RELEASE SAVEPOINT active_record_1
23867
+ Processing by Kms::SnippetsController#update as JSON
23868
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
23869
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
23870
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
23871
+  (0.2ms) SAVEPOINT active_record_1
23872
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
23873
+ Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms)
23874
+  (0.2ms) ROLLBACK
23875
+  (0.1ms) BEGIN
23876
+  (0.2ms) SAVEPOINT active_record_1
23877
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23878
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$Inj8lNOk7soYT1uhRGHyUOkkjqc8fV8ILunQ4/UFU1EPYAVlKz3cS"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23879
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23880
+  (0.2ms) SAVEPOINT active_record_1
23881
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23882
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23883
+ Processing by Kms::SnippetsController#update as JSON
23884
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
23885
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
23886
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
23887
+  (0.2ms) SAVEPOINT active_record_1
23888
+ SQL (5.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-19 06:48:53 UTC], ["id", 4]]
23889
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23890
+ Completed 204 No Content in 14ms (ActiveRecord: 7.0ms)
23891
+  (0.2ms) ROLLBACK
23892
+  (0.1ms) BEGIN
23893
+  (0.2ms) SAVEPOINT active_record_1
23894
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23895
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$0p5YbTRlx4vuSCQXea4mtO1z9Vgjn8g3fmomx/jmq9MioPRnSnGhy"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23896
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23897
+  (0.2ms) SAVEPOINT active_record_1
23898
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23899
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23900
+ Processing by Kms::SnippetsController#show as JSON
23901
+ Parameters: {"id"=>"5"}
23902
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
23903
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
23904
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.25ms)
23905
+ Completed 200 OK in 5ms (Views: 1.1ms | ActiveRecord: 1.3ms)
23906
+  (0.3ms) ROLLBACK
23907
+  (0.1ms) BEGIN
23908
+  (0.2ms) SAVEPOINT active_record_1
23909
+ Kms::User Exists (0.6ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
23910
+ SQL (0.6ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$42eRuAikXCZjhvnVkvnU6uggJ7UmU920PKU1Gt6UxElt8zj4CCpem"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23911
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23912
+  (0.2ms) SAVEPOINT active_record_1
23913
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23914
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23915
+ Processing by Kms::SnippetsController#destroy as JSON
23916
+ Parameters: {"id"=>"6"}
23917
+ Kms::User Load (0.3ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
23918
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
23919
+  (0.2ms) SAVEPOINT active_record_1
23920
+ SQL (0.4ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
23921
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23922
+ Completed 204 No Content in 5ms (ActiveRecord: 1.5ms)
23923
+  (0.3ms) ROLLBACK
23924
+  (0.1ms) BEGIN
23925
+ Kms::Settings Load (0.8ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
23926
+  (0.3ms) SAVEPOINT active_record_1
23927
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23928
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23929
+  (0.2ms) ROLLBACK
23930
+  (0.1ms) BEGIN
23931
+  (0.1ms) ROLLBACK
23932
+  (0.1ms) BEGIN
23933
+  (0.2ms) SAVEPOINT active_record_1
23934
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-19 06:48:53 UTC], ["updated_at", 2017-04-19 06:48:53 UTC]]
23935
+  (0.2ms) RELEASE SAVEPOINT active_record_1
23936
+  (0.2ms) ROLLBACK
23937
+  (0.1ms) BEGIN
23938
+  (0.2ms) ROLLBACK
23939
+  (0.1ms) BEGIN
23940
+  (0.3ms) ROLLBACK
23941
+  (0.2ms) BEGIN
23942
+  (0.3ms) ROLLBACK
23943
+  (198.7ms) DROP DATABASE IF EXISTS "kms_test"
23944
+  (537.6ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
23945
+  (13.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23946
+ ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
23947
+  (0.2ms) BEGIN
23948
+ SQL (6.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-04-24 13:37:37 UTC], ["updated_at", 2017-04-24 13:37:37 UTC]]
23949
+  (5.8ms) COMMIT
23950
+  (20.6ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
23951
+  (0.5ms) SELECT pg_try_advisory_lock(7029803947170562740);
23952
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
23953
+ Migrating to CreatePages (20141027065341)
23954
+  (0.2ms) BEGIN
23955
+  (30.7ms) 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)
23956
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
23957
+  (0.5ms) COMMIT
23958
+ Migrating to CreateTemplates (20141027083603)
23959
+  (6.0ms) BEGIN
23960
+  (16.5ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23961
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
23962
+  (0.5ms) COMMIT
23963
+ Migrating to AddTemplateIdToPages (20141027083633)
23964
+  (6.3ms) BEGIN
23965
+  (1.9ms) ALTER TABLE "kms_pages" ADD "template_id" integer
23966
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
23967
+  (6.0ms) COMMIT
23968
+ Migrating to CreateAssets (20141029145253)
23969
+  (0.3ms) BEGIN
23970
+  (17.2ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
23971
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
23972
+  (5.0ms) COMMIT
23973
+ Migrating to AddAncestryToPages (20141031125758)
23974
+  (6.1ms) BEGIN
23975
+  (0.6ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
23976
+  (7.3ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
23977
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
23978
+  (4.9ms) COMMIT
23979
+ Migrating to DeviseCreateUsers (20141031140308)
23980
+  (0.2ms) BEGIN
23981
+  (16.1ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
23982
+  (6.1ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
23983
+  (1.3ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
23984
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
23985
+  (0.9ms) COMMIT
23986
+ Migrating to AddFullpathToPages (20141119084306)
23987
+  (6.3ms) BEGIN
23988
+  (0.7ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
23989
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
23990
+  (6.1ms) COMMIT
23991
+ Migrating to AddRoleToUsers (20141121112652)
23992
+  (0.2ms) BEGIN
23993
+  (0.6ms) ALTER TABLE "kms_users" ADD "role" character varying
23994
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
23995
+  (5.7ms) COMMIT
23996
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
23997
+  (0.2ms) BEGIN
23998
+  (25.5ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
23999
+  (0.4ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
24000
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
24001
+  (1.4ms) COMMIT
24002
+ Migrating to AddHiddenToPage (20141209132901)
24003
+  (1.0ms) BEGIN
24004
+  (21.9ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
24005
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
24006
+  (4.4ms) COMMIT
24007
+ Migrating to AddPositionToKmsPages (20150209120632)
24008
+  (0.4ms) BEGIN
24009
+  (23.9ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
24010
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
24011
+  (1.1ms) COMMIT
24012
+ Migrating to CreateKmsSnippets (20160129100437)
24013
+  (0.3ms) BEGIN
24014
+  (16.4ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24015
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
24016
+  (5.2ms) COMMIT
24017
+ Migrating to CreateKmsSettings (20160712094512)
24018
+  (6.4ms) BEGIN
24019
+  (16.4ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24020
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
24021
+  (0.5ms) COMMIT
24022
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
24023
+  (6.0ms) BEGIN
24024
+  (13.3ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
24025
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
24026
+  (0.5ms) COMMIT
24027
+ 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]]
24028
+  (0.2ms) BEGIN
24029
+  (0.2ms) COMMIT
24030
+  (0.3ms) SELECT pg_advisory_unlock(7029803947170562740)
24031
+ Kms::Template Load (1.0ms) SELECT "kms_templates".* FROM "kms_templates"
24032
+ Kms::Page Load (1.1ms) SELECT "kms_pages".* FROM "kms_pages"
24033
+ Kms::Snippet Load (1.1ms) SELECT "kms_snippets".* FROM "kms_snippets"
24034
+  (0.3ms) BEGIN
24035
+  (0.3ms) SAVEPOINT active_record_1
24036
+ Kms::User Exists (1.0ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24037
+ SQL (20.3ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$dRR3PSqy7ak.vgmswJ5eMe4bgH2deYyaBMM.HYjKGNPy/NjReQNDi"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24038
+  (0.4ms) RELEASE SAVEPOINT active_record_1
24039
+  (0.3ms) SAVEPOINT active_record_1
24040
+ SQL (0.9ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24041
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24042
+ Processing by Kms::SnippetsController#index as JSON
24043
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
24044
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
24045
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.6ms)
24046
+ Completed 200 OK in 22ms (Views: 18.3ms | ActiveRecord: 1.1ms)
24047
+  (0.5ms) ROLLBACK
24048
+  (0.2ms) BEGIN
24049
+  (0.2ms) SAVEPOINT active_record_1
24050
+ Kms::User Exists (1.2ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24051
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$UGUk1OZ9s7p4CsfaqSS4J.FWJKkEEO/yScSlX1PzXkliQWTkpPSNu"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24052
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24053
+ Processing by Kms::SnippetsController#create as JSON
24054
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
24055
+ Kms::User Load (0.8ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
24056
+  (0.3ms) SAVEPOINT active_record_1
24057
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
24058
+ Completed 422 Unprocessable Entity in 46ms (Views: 4.3ms | ActiveRecord: 1.5ms)
24059
+  (0.4ms) ROLLBACK
24060
+  (0.2ms) BEGIN
24061
+  (0.2ms) SAVEPOINT active_record_1
24062
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24063
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$rC1ZJQSQV/zcZykwIGJfQey1J9wR8QjQVL9GhTFrGOsnnnzbZAqlK"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24065
+ Processing by Kms::SnippetsController#create as JSON
24066
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
24067
+ Kms::User Load (0.4ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
24068
+  (0.2ms) SAVEPOINT active_record_1
24069
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24070
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24071
+ Completed 204 No Content in 5ms (ActiveRecord: 1.3ms)
24072
+  (0.2ms) ROLLBACK
24073
+  (0.1ms) BEGIN
24074
+  (0.2ms) SAVEPOINT active_record_1
24075
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24076
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$QKOk5RUyh.7m1ovDy/vEvOiTCKM2rN6F9zhE0zNk8t4b6ZKPX6MOa"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24077
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24078
+  (0.2ms) SAVEPOINT active_record_1
24079
+ SQL (0.4ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24080
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24081
+ Processing by Kms::SnippetsController#update as JSON
24082
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
24083
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
24084
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
24085
+  (0.2ms) SAVEPOINT active_record_1
24086
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
24087
+ Completed 422 Unprocessable Entity in 27ms (Views: 0.4ms | ActiveRecord: 1.6ms)
24088
+  (0.2ms) ROLLBACK
24089
+  (0.2ms) BEGIN
24090
+  (0.2ms) SAVEPOINT active_record_1
24091
+ Kms::User Exists (1.3ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24092
+ SQL (1.0ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$wHtQDyP/su5gQUaWtxSiBujv2uuIVHxRym7bmWA5Wixj4CxtTCMRi"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24093
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24094
+  (0.2ms) SAVEPOINT active_record_1
24095
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24096
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24097
+ Processing by Kms::SnippetsController#update as JSON
24098
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
24099
+ Kms::User Load (0.4ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
24100
+ Kms::Snippet Load (0.3ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
24101
+  (0.2ms) SAVEPOINT active_record_1
24102
+ SQL (0.7ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-04-24 13:37:38 UTC], ["id", 4]]
24103
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24104
+ Completed 204 No Content in 7ms (ActiveRecord: 1.9ms)
24105
+  (0.2ms) ROLLBACK
24106
+  (0.2ms) BEGIN
24107
+  (0.2ms) SAVEPOINT active_record_1
24108
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24109
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$L8l5YdTLXYv20203zEj/gOzJcRdANpOQNMed4lZllrLPOdlD2bSWu"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24110
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24111
+  (0.1ms) SAVEPOINT active_record_1
24112
+ SQL (0.4ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24113
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24114
+ Processing by Kms::SnippetsController#show as JSON
24115
+ Parameters: {"id"=>"5"}
24116
+ Kms::User Load (0.4ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
24117
+ Kms::Snippet Load (0.3ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
24118
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.31ms)
24119
+ Completed 200 OK in 4ms (Views: 1.2ms | ActiveRecord: 0.8ms)
24120
+  (0.3ms) ROLLBACK
24121
+  (0.2ms) BEGIN
24122
+  (0.2ms) SAVEPOINT active_record_1
24123
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24124
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$KCuCPrcvnbTPsuxIcDTW8Op6K.x16jaoclmFmKU4ol.UdgVglHubS"], ["created_at", 2017-04-24 13:37:38 UTC], ["updated_at", 2017-04-24 13:37:38 UTC]]
24125
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24126
+  (0.2ms) SAVEPOINT active_record_1
24127
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:39 UTC], ["updated_at", 2017-04-24 13:37:39 UTC]]
24128
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24129
+ Processing by Kms::SnippetsController#destroy as JSON
24130
+ Parameters: {"id"=>"6"}
24131
+ Kms::User Load (0.3ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
24132
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
24133
+  (0.2ms) SAVEPOINT active_record_1
24134
+ SQL (0.4ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
24135
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24136
+ Completed 204 No Content in 5ms (ActiveRecord: 1.5ms)
24137
+  (0.2ms) ROLLBACK
24138
+  (0.1ms) BEGIN
24139
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
24140
+  (0.2ms) SAVEPOINT active_record_1
24141
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-04-24 13:37:39 UTC], ["updated_at", 2017-04-24 13:37:39 UTC]]
24142
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24143
+  (0.2ms) ROLLBACK
24144
+  (0.1ms) BEGIN
24145
+  (0.1ms) ROLLBACK
24146
+  (0.1ms) BEGIN
24147
+  (0.2ms) SAVEPOINT active_record_1
24148
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-04-24 13:37:39 UTC], ["updated_at", 2017-04-24 13:37:39 UTC]]
24149
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24150
+  (0.2ms) ROLLBACK
24151
+  (0.1ms) BEGIN
24152
+  (0.2ms) ROLLBACK
24153
+  (0.1ms) BEGIN
24154
+  (0.2ms) ROLLBACK
24155
+  (0.1ms) BEGIN
24156
+  (0.1ms) ROLLBACK
24157
+  (218.9ms) DROP DATABASE IF EXISTS "kms_test"
24158
+  (551.0ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
24159
+  (13.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24160
+ 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]]
24161
+  (0.3ms) BEGIN
24162
+ SQL (6.5ms) 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-05-10 12:27:34 UTC], ["updated_at", 2017-05-10 12:27:34 UTC]]
24163
+  (6.1ms) COMMIT
24164
+  (21.4ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
24165
+  (0.4ms) SELECT pg_try_advisory_lock(7029803947170562740);
24166
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
24167
+ Migrating to CreatePages (20141027065341)
24168
+  (0.2ms) BEGIN
24169
+  (32.2ms) 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)
24170
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
24171
+  (0.8ms) COMMIT
24172
+ Migrating to CreateTemplates (20141027083603)
24173
+  (6.0ms) BEGIN
24174
+  (17.0ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24175
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
24176
+  (1.0ms) COMMIT
24177
+ Migrating to AddTemplateIdToPages (20141027083633)
24178
+  (6.3ms) BEGIN
24179
+  (12.6ms) ALTER TABLE "kms_pages" ADD "template_id" integer
24180
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
24181
+  (4.1ms) COMMIT
24182
+ Migrating to CreateAssets (20141029145253)
24183
+  (0.4ms) BEGIN
24184
+  (19.0ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24185
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
24186
+  (2.9ms) COMMIT
24187
+ Migrating to AddAncestryToPages (20141031125758)
24188
+  (0.5ms) BEGIN
24189
+  (0.7ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
24190
+  (6.8ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
24191
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
24192
+  (5.7ms) COMMIT
24193
+ Migrating to DeviseCreateUsers (20141031140308)
24194
+  (0.4ms) BEGIN
24195
+  (17.4ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
24196
+  (1.2ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
24197
+  (1.6ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
24198
+ SQL (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
24199
+  (0.7ms) COMMIT
24200
+ Migrating to AddFullpathToPages (20141119084306)
24201
+  (6.2ms) BEGIN
24202
+  (0.9ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
24203
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
24204
+  (6.1ms) COMMIT
24205
+ Migrating to AddRoleToUsers (20141121112652)
24206
+  (0.2ms) BEGIN
24207
+  (0.5ms) ALTER TABLE "kms_users" ADD "role" character varying
24208
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
24209
+  (11.7ms) COMMIT
24210
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
24211
+  (0.3ms) BEGIN
24212
+  (26.5ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
24213
+  (1.0ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
24214
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
24215
+  (1.1ms) COMMIT
24216
+ Migrating to AddHiddenToPage (20141209132901)
24217
+  (0.3ms) BEGIN
24218
+  (53.6ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
24219
+ SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
24220
+  (2.1ms) COMMIT
24221
+ Migrating to AddPositionToKmsPages (20150209120632)
24222
+  (0.7ms) BEGIN
24223
+  (25.8ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
24224
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
24225
+  (1.6ms) COMMIT
24226
+ Migrating to CreateKmsSnippets (20160129100437)
24227
+  (1.0ms) BEGIN
24228
+  (22.8ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24229
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
24230
+  (0.6ms) COMMIT
24231
+ Migrating to CreateKmsSettings (20160712094512)
24232
+  (6.1ms) BEGIN
24233
+  (43.3ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24234
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
24235
+  (0.5ms) COMMIT
24236
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
24237
+  (11.7ms) BEGIN
24238
+  (12.9ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
24239
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
24240
+  (11.7ms) COMMIT
24241
+ 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]]
24242
+  (0.2ms) BEGIN
24243
+  (0.2ms) COMMIT
24244
+  (0.3ms) SELECT pg_advisory_unlock(7029803947170562740)
24245
+ Kms::Template Load (0.7ms) SELECT "kms_templates".* FROM "kms_templates"
24246
+ Kms::Page Load (1.1ms) SELECT "kms_pages".* FROM "kms_pages"
24247
+ Kms::Snippet Load (0.7ms) SELECT "kms_snippets".* FROM "kms_snippets"
24248
+  (0.3ms) BEGIN
24249
+  (0.3ms) SAVEPOINT active_record_1
24250
+ Kms::User Exists (1.0ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24251
+ SQL (23.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$P4W2PEcwbuZeHDt2TqbtveHSni1ZZE7OzCmQnEkmYIrODxBl9tPNu"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24252
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24253
+  (0.3ms) SAVEPOINT active_record_1
24254
+ SQL (6.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24255
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24256
+ Processing by Kms::SnippetsController#index as JSON
24257
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
24258
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets"
24259
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.5ms)
24260
+ Completed 200 OK in 21ms (Views: 16.9ms | ActiveRecord: 1.3ms)
24261
+  (0.5ms) ROLLBACK
24262
+  (0.2ms) BEGIN
24263
+  (0.2ms) SAVEPOINT active_record_1
24264
+ Kms::User Exists (1.0ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24265
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$fkKiUrBzmQy2wwg18MyhOucRnQEnwMX9K5q4Pvwm2imyAPFTJZdKO"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24266
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24267
+ Processing by Kms::SnippetsController#create as JSON
24268
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
24269
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
24270
+  (0.3ms) SAVEPOINT active_record_1
24271
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
24272
+ Completed 422 Unprocessable Entity in 46ms (Views: 5.0ms | ActiveRecord: 1.1ms)
24273
+  (0.3ms) ROLLBACK
24274
+  (0.1ms) BEGIN
24275
+  (0.2ms) SAVEPOINT active_record_1
24276
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24277
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$E.Lof6YInVUPRc7nQGRYtuNcwlhoMsfqu8/fwrw1H93KiPrR38P6y"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24278
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24279
+ Processing by Kms::SnippetsController#create as JSON
24280
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
24281
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
24282
+  (0.3ms) SAVEPOINT active_record_1
24283
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24284
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24285
+ Completed 204 No Content in 6ms (ActiveRecord: 1.6ms)
24286
+  (0.2ms) ROLLBACK
24287
+  (0.1ms) BEGIN
24288
+  (0.2ms) SAVEPOINT active_record_1
24289
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24290
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$0ykj3skv5USR22Rie.dis.8G/T.T/W3q4tK09K5j8J61RFuDYaKC."], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24291
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24292
+  (0.3ms) SAVEPOINT active_record_1
24293
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24294
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24295
+ Processing by Kms::SnippetsController#update as JSON
24296
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
24297
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
24298
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
24299
+  (0.2ms) SAVEPOINT active_record_1
24300
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
24301
+ Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | ActiveRecord: 1.5ms)
24302
+  (0.3ms) ROLLBACK
24303
+  (0.2ms) BEGIN
24304
+  (0.2ms) SAVEPOINT active_record_1
24305
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24306
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$6/74gcFDUwbQsLTlfCobqukSCpeq.5EbJ15Ax6FJ9iLdQaU3hhJxe"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24307
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24308
+  (0.2ms) SAVEPOINT active_record_1
24309
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24310
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24311
+ Processing by Kms::SnippetsController#update as JSON
24312
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
24313
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
24314
+ Kms::Snippet Load (0.5ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
24315
+  (0.2ms) SAVEPOINT active_record_1
24316
+ SQL (0.6ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-05-10 12:27:35 UTC], ["id", 4]]
24317
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24318
+ Completed 204 No Content in 8ms (ActiveRecord: 2.0ms)
24319
+  (0.2ms) ROLLBACK
24320
+  (0.1ms) BEGIN
24321
+  (0.2ms) SAVEPOINT active_record_1
24322
+ Kms::User Exists (0.5ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24323
+ SQL (0.5ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$4MD3lpRh5JGnaLoQi17Tyu6x64z0DdHx7vBNPTo2JmLsPGhiUgIje"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24324
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24325
+  (0.2ms) SAVEPOINT active_record_1
24326
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24327
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24328
+ Processing by Kms::SnippetsController#show as JSON
24329
+ Parameters: {"id"=>"5"}
24330
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
24331
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
24332
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.22ms)
24333
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.8ms)
24334
+  (0.3ms) ROLLBACK
24335
+  (0.1ms) BEGIN
24336
+  (0.2ms) SAVEPOINT active_record_1
24337
+ Kms::User Exists (0.8ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24338
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$u5.D/eIZ8L9Z9p4HNnOV7O.V3sN.l25wHICW6ObQXxEdYXQT2MsFy"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24339
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24340
+  (0.3ms) SAVEPOINT active_record_1
24341
+ SQL (0.9ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24342
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24343
+ Processing by Kms::SnippetsController#destroy as JSON
24344
+ Parameters: {"id"=>"6"}
24345
+ Kms::User Load (0.4ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
24346
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
24347
+  (0.2ms) SAVEPOINT active_record_1
24348
+ SQL (0.4ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
24349
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24350
+ Completed 204 No Content in 5ms (ActiveRecord: 1.6ms)
24351
+  (0.2ms) ROLLBACK
24352
+  (0.1ms) BEGIN
24353
+ Kms::Settings Load (0.5ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
24354
+  (0.2ms) SAVEPOINT active_record_1
24355
+ SQL (0.8ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24356
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24357
+  (0.2ms) ROLLBACK
24358
+  (0.2ms) BEGIN
24359
+  (0.2ms) ROLLBACK
24360
+  (0.1ms) BEGIN
24361
+  (0.2ms) SAVEPOINT active_record_1
24362
+ SQL (0.5ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:27:35 UTC], ["updated_at", 2017-05-10 12:27:35 UTC]]
24363
+  (0.2ms) RELEASE SAVEPOINT active_record_1
24364
+  (0.2ms) ROLLBACK
24365
+  (0.2ms) BEGIN
24366
+  (0.2ms) ROLLBACK
24367
+  (0.2ms) BEGIN
24368
+  (0.3ms) ROLLBACK
24369
+  (0.2ms) BEGIN
24370
+  (0.2ms) ROLLBACK
24371
+  (195.7ms) DROP DATABASE IF EXISTS "kms_test"
24372
+  (400.6ms) CREATE DATABASE "kms_test" ENCODING = 'utf-8'
24373
+  (10.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24374
+ 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]]
24375
+  (0.3ms) BEGIN
24376
+ 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-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24377
+  (0.5ms) COMMIT
24378
+  (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
24379
+  (0.5ms) SELECT pg_try_advisory_lock(7029803947170562740);
24380
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
24381
+ Migrating to CreatePages (20141027065341)
24382
+  (0.3ms) BEGIN
24383
+  (8.2ms) 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)
24384
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027065341"]]
24385
+  (0.7ms) COMMIT
24386
+ Migrating to CreateTemplates (20141027083603)
24387
+  (0.5ms) BEGIN
24388
+  (7.5ms) CREATE TABLE "kms_templates" ("id" serial primary key, "name" character varying, "content" text DEFAULT '', "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24389
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083603"]]
24390
+  (0.7ms) COMMIT
24391
+ Migrating to AddTemplateIdToPages (20141027083633)
24392
+  (0.5ms) BEGIN
24393
+  (1.7ms) ALTER TABLE "kms_pages" ADD "template_id" integer
24394
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141027083633"]]
24395
+  (1.7ms) COMMIT
24396
+ Migrating to CreateAssets (20141029145253)
24397
+  (0.3ms) BEGIN
24398
+  (8.1ms) CREATE TABLE "kms_assets" ("id" serial primary key, "file" character varying, "content_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24399
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141029145253"]]
24400
+  (0.8ms) COMMIT
24401
+ Migrating to AddAncestryToPages (20141031125758)
24402
+  (0.6ms) BEGIN
24403
+  (0.9ms) ALTER TABLE "kms_pages" ADD "ancestry" character varying
24404
+  (2.7ms) CREATE INDEX "index_kms_pages_on_ancestry" ON "kms_pages" ("ancestry")
24405
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031125758"]]
24406
+  (0.5ms) COMMIT
24407
+ Migrating to DeviseCreateUsers (20141031140308)
24408
+  (0.4ms) BEGIN
24409
+  (8.3ms) CREATE TABLE "kms_users" ("id" serial primary key, "email" character varying DEFAULT '' NOT NULL, "encrypted_password" character varying DEFAULT '' NOT NULL, "reset_password_token" character varying, "reset_password_sent_at" timestamp, "remember_created_at" timestamp, "created_at" timestamp, "updated_at" timestamp)
24410
+  (2.8ms) CREATE UNIQUE INDEX "index_kms_users_on_email" ON "kms_users" ("email")
24411
+  (1.7ms) CREATE UNIQUE INDEX "index_kms_users_on_reset_password_token" ON "kms_users" ("reset_password_token")
24412
+ SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141031140308"]]
24413
+  (3.0ms) COMMIT
24414
+ Migrating to AddFullpathToPages (20141119084306)
24415
+  (1.2ms) BEGIN
24416
+  (0.8ms) ALTER TABLE "kms_pages" ADD "fullpath" character varying
24417
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141119084306"]]
24418
+  (0.6ms) COMMIT
24419
+ Migrating to AddRoleToUsers (20141121112652)
24420
+  (0.3ms) BEGIN
24421
+  (1.3ms) ALTER TABLE "kms_users" ADD "role" character varying
24422
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141121112652"]]
24423
+  (0.5ms) COMMIT
24424
+ Migrating to AddTemplatableFieldsToPages (20141127073902)
24425
+  (0.3ms) BEGIN
24426
+  (10.3ms) ALTER TABLE "kms_pages" ADD "templatable" boolean DEFAULT 'f'
24427
+  (0.6ms) ALTER TABLE "kms_pages" ADD "templatable_type" character varying
24428
+ SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141127073902"]]
24429
+  (1.7ms) COMMIT
24430
+ Migrating to AddHiddenToPage (20141209132901)
24431
+  (0.4ms) BEGIN
24432
+  (8.6ms) ALTER TABLE "kms_pages" ADD "hidden" boolean DEFAULT 'f'
24433
+ SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20141209132901"]]
24434
+  (2.0ms) COMMIT
24435
+ Migrating to AddPositionToKmsPages (20150209120632)
24436
+  (0.9ms) BEGIN
24437
+  (10.0ms) ALTER TABLE "kms_pages" ADD "position" integer DEFAULT 0 NOT NULL
24438
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20150209120632"]]
24439
+  (1.5ms) COMMIT
24440
+ Migrating to CreateKmsSnippets (20160129100437)
24441
+  (0.6ms) BEGIN
24442
+  (8.6ms) CREATE TABLE "kms_snippets" ("id" serial primary key, "name" character varying, "slug" character varying, "content" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24443
+ SQL (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160129100437"]]
24444
+  (0.6ms) COMMIT
24445
+ Migrating to CreateKmsSettings (20160712094512)
24446
+  (0.5ms) BEGIN
24447
+  (7.3ms) CREATE TABLE "kms_settings" ("id" serial primary key, "values" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
24448
+ SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160712094512"]]
24449
+  (0.8ms) COMMIT
24450
+ Migrating to SetDefaultValueForKmsSettingsValuesField (20161118151849)
24451
+  (0.8ms) BEGIN
24452
+  (0.9ms) ALTER TABLE "kms_settings" ALTER COLUMN "values" SET DEFAULT '{}'
24453
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20161118151849"]]
24454
+  (0.5ms) COMMIT
24455
+ 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]]
24456
+  (0.3ms) BEGIN
24457
+  (0.3ms) COMMIT
24458
+  (0.4ms) SELECT pg_advisory_unlock(7029803947170562740)
24459
+ Kms::Template Load (1.0ms) SELECT "kms_templates".* FROM "kms_templates"
24460
+ Kms::Page Load (1.4ms) SELECT "kms_pages".* FROM "kms_pages"
24461
+ Kms::Snippet Load (1.3ms) SELECT "kms_snippets".* FROM "kms_snippets"
24462
+  (0.3ms) BEGIN
24463
+  (0.4ms) SAVEPOINT active_record_1
24464
+ Kms::User Exists (1.1ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24465
+ SQL (1.3ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$EncCcR6ZNBervZb7a0laleHZR/mrjZtlv6TvxW47hRNdGKMmC9f5u"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24466
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24467
+  (0.4ms) SAVEPOINT active_record_1
24468
+ SQL (1.4ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24469
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24470
+ Processing by Kms::SnippetsController#index as JSON
24471
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 1], ["LIMIT", 1]]
24472
+ Kms::Snippet Load (0.7ms) SELECT "kms_snippets".* FROM "kms_snippets"
24473
+ [active_model_serializers] Rendered ActiveModel::Serializer::CollectionSerializer with ActiveModelSerializers::Adapter::Attributes (0.74ms)
24474
+ Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 1.4ms)
24475
+  (0.6ms) ROLLBACK
24476
+  (0.2ms) BEGIN
24477
+  (0.4ms) SAVEPOINT active_record_1
24478
+ Kms::User Exists (0.9ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24479
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$taHnFnHHw6VPlbH4yy9p8euYSYz5lteLgR2P7TYIC.c1INv.LdenC"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24480
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24481
+ Processing by Kms::SnippetsController#create as JSON
24482
+ Parameters: {"snippet"=>{"content"=>"MyText"}}
24483
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 2], ["LIMIT", 1]]
24484
+  (0.3ms) SAVEPOINT active_record_1
24485
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
24486
+ Completed 422 Unprocessable Entity in 56ms (Views: 4.5ms | ActiveRecord: 1.2ms)
24487
+  (0.4ms) ROLLBACK
24488
+  (0.2ms) BEGIN
24489
+  (0.3ms) SAVEPOINT active_record_1
24490
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24491
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$oaeGyxCV1O2waDen1JxI5e7f3IuEldbyvDFU3OOj.hjo592HJLQ9W"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24492
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24493
+ Processing by Kms::SnippetsController#create as JSON
24494
+ Parameters: {"snippet"=>{"content"=>"MyText", "name"=>"Snippet", "slug"=>"my-snippet"}}
24495
+ Kms::User Load (0.6ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
24496
+  (0.3ms) SAVEPOINT active_record_1
24497
+ SQL (1.0ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24498
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24499
+ Completed 204 No Content in 8ms (ActiveRecord: 2.2ms)
24500
+  (0.3ms) ROLLBACK
24501
+  (0.2ms) BEGIN
24502
+  (0.3ms) SAVEPOINT active_record_1
24503
+ Kms::User Exists (0.8ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24504
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$JYA7pVeVhwesCus/hdZ9iOAVHpe0rj05Uy4ta.WsYLJyZAxta5h8i"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24505
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24506
+  (0.3ms) SAVEPOINT active_record_1
24507
+ SQL (1.2ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24508
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24509
+ Processing by Kms::SnippetsController#update as JSON
24510
+ Parameters: {"snippet"=>{"slug"=>""}, "id"=>"3"}
24511
+ Kms::User Load (0.7ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 4], ["LIMIT", 1]]
24512
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]]
24513
+  (0.5ms) SAVEPOINT active_record_1
24514
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
24515
+ Completed 422 Unprocessable Entity in 11ms (Views: 0.7ms | ActiveRecord: 2.1ms)
24516
+  (0.3ms) ROLLBACK
24517
+  (0.4ms) BEGIN
24518
+  (0.3ms) SAVEPOINT active_record_1
24519
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24520
+ SQL (1.3ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$v/PQI8iwdpQhIVppC.yaIeqbhvrtTaOIDd6j/t24VvZRnMYD0.LVK"], ["created_at", 2017-05-10 12:28:01 UTC], ["updated_at", 2017-05-10 12:28:01 UTC]]
24521
+  (0.5ms) RELEASE SAVEPOINT active_record_1
24522
+  (0.3ms) SAVEPOINT active_record_1
24523
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24524
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24525
+ Processing by Kms::SnippetsController#update as JSON
24526
+ Parameters: {"snippet"=>{"slug"=>"new-slug"}, "id"=>"4"}
24527
+ Kms::User Load (0.5ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 5], ["LIMIT", 1]]
24528
+ Kms::Snippet Load (0.6ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
24529
+  (0.3ms) SAVEPOINT active_record_1
24530
+ SQL (0.8ms) UPDATE "kms_snippets" SET "slug" = $1, "updated_at" = $2 WHERE "kms_snippets"."id" = $3 [["slug", "new-slug"], ["updated_at", 2017-05-10 12:28:02 UTC], ["id", 4]]
24531
+  (0.4ms) RELEASE SAVEPOINT active_record_1
24532
+ Completed 204 No Content in 11ms (ActiveRecord: 2.6ms)
24533
+  (0.3ms) ROLLBACK
24534
+  (0.2ms) BEGIN
24535
+  (0.3ms) SAVEPOINT active_record_1
24536
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24537
+ SQL (0.7ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$IP5Iql.ReOo5jZmeCdcrC.reEKgZoA7fuS3iE249rHkMRaaCYH9Uu"], ["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24538
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24539
+  (0.5ms) SAVEPOINT active_record_1
24540
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24541
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24542
+ Processing by Kms::SnippetsController#show as JSON
24543
+ Parameters: {"id"=>"5"}
24544
+ Kms::User Load (1.0ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 6], ["LIMIT", 1]]
24545
+ Kms::Snippet Load (0.8ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]]
24546
+ [active_model_serializers] Rendered Kms::SnippetSerializer with ActiveModelSerializers::Adapter::Attributes (0.37ms)
24547
+ Completed 200 OK in 7ms (Views: 1.7ms | ActiveRecord: 1.8ms)
24548
+  (0.4ms) ROLLBACK
24549
+  (0.3ms) BEGIN
24550
+  (0.3ms) SAVEPOINT active_record_1
24551
+ Kms::User Exists (0.7ms) SELECT 1 AS one FROM "kms_users" WHERE "kms_users"."email" = $1 LIMIT $2 [["email", "admin@example.com"], ["LIMIT", 1]]
24552
+ SQL (0.8ms) INSERT INTO "kms_users" ("email", "encrypted_password", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["email", "admin@example.com"], ["encrypted_password", "$2a$04$X5bC1uB0knFs7WxEqDAiDexKsXwIbzjvum9p30yD/UJqhK9PeZ/P2"], ["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24553
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24554
+  (0.2ms) SAVEPOINT active_record_1
24555
+ SQL (0.6ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24556
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24557
+ Processing by Kms::SnippetsController#destroy as JSON
24558
+ Parameters: {"id"=>"6"}
24559
+ Kms::User Load (0.4ms) SELECT "kms_users".* FROM "kms_users" WHERE "kms_users"."id" = $1 ORDER BY "kms_users"."id" ASC LIMIT $2 [["id", 7], ["LIMIT", 1]]
24560
+ Kms::Snippet Load (0.4ms) SELECT "kms_snippets".* FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]]
24561
+  (0.2ms) SAVEPOINT active_record_1
24562
+ SQL (0.6ms) DELETE FROM "kms_snippets" WHERE "kms_snippets"."id" = $1 [["id", 6]]
24563
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24564
+ Completed 204 No Content in 6ms (ActiveRecord: 1.9ms)
24565
+  (0.4ms) ROLLBACK
24566
+  (0.2ms) BEGIN
24567
+ Kms::Settings Load (0.7ms) SELECT "kms_settings".* FROM "kms_settings" ORDER BY "kms_settings"."id" ASC LIMIT $1 [["LIMIT", 1]]
24568
+  (0.3ms) SAVEPOINT active_record_1
24569
+ SQL (1.2ms) INSERT INTO "kms_settings" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24570
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24571
+  (0.3ms) ROLLBACK
24572
+  (0.2ms) BEGIN
24573
+  (0.3ms) ROLLBACK
24574
+  (0.2ms) BEGIN
24575
+  (0.2ms) SAVEPOINT active_record_1
24576
+ SQL (0.7ms) INSERT INTO "kms_snippets" ("name", "slug", "content", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Snippet"], ["slug", "my-snippet"], ["content", "MyText"], ["created_at", 2017-05-10 12:28:02 UTC], ["updated_at", 2017-05-10 12:28:02 UTC]]
24577
+  (0.3ms) RELEASE SAVEPOINT active_record_1
24578
+  (0.3ms) ROLLBACK
24579
+  (0.2ms) BEGIN
24580
+  (0.2ms) ROLLBACK
24581
+  (0.2ms) BEGIN
24582
+  (0.4ms) ROLLBACK
24583
+  (0.2ms) BEGIN
24584
+  (0.2ms) ROLLBACK