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