spec/dummy/log/test.log in pulitzer-0.4.4 vs spec/dummy/log/test.log in pulitzer-0.4.5
- old
+ new
@@ -53735,5 +53735,1218 @@
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ?[0m [["version_id", 2], ["label_type", "Pulitzer::Tag"]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]]
[1m[36mPulitzer::PostTag Load (0.1ms)[0m [1mSELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ?[0m [["version_id", 2], ["label_type", "Pulitzer::Tag"]]
[1m[35mPulitzer::Tag Load (0.1ms)[0m SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
+ [1m[35m (1.4ms)[0m DELETE FROM "pulitzer_content_element_types";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.4ms)[0m DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types';
+ [1m[36m (1.6ms)[0m [1mDELETE FROM "pulitzer_posts";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'pulitzer_posts';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "pulitzer_tags";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'pulitzer_tags';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "pulitzer_post_type_content_element_types";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "search_locations";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'search_locations';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "pulitzer_versions";[0m
+ [1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.2ms)[0m [1mDELETE FROM sqlite_sequence where name = 'pulitzer_versions';[0m
+ [1m[35m (1.0ms)[0m DELETE FROM "pulitzer_content_elements";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements';
+ [1m[36m (1.1ms)[0m [1mDELETE FROM "pulitzer_post_tags";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'pulitzer_post_tags';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "pulitzer_post_types";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'pulitzer_post_types';
+ [1m[36m (0.7ms)[0m [1mDELETE FROM "pulitzer_partials";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'pulitzer_partials';[0m
+ [1m[35m (1.1ms)[0m DELETE FROM "pulitzer_free_form_section_types";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types';
+ [1m[36m (0.9ms)[0m [1mDELETE FROM "pulitzer_free_form_sections";[0m
+ [1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
+ [1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections';[0m
+ [1m[35m (0.8ms)[0m DELETE FROM "pulitzer_layouts";
+ [1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
+ [1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'pulitzer_layouts';
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.540373"], ["updated_at", "2016-05-23 18:08:22.540373"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by Pulitzer::FreeFormSectionTypesController#new as HTML
+ Parameters: {"post_type_id"=>"1"}
+ [1m[36mPulitzer::PostType Load (0.2ms)[0m [1mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (7.9ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_new.html.erb (31.6ms)
+Completed 200 OK in 68ms (Views: 43.1ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.624204"], ["updated_at", "2016-05-23 18:08:22.624204"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by Pulitzer::FreeFormSectionTypesController#create as HTML
+ Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}}
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::Post Load (0.1ms)[0m [1mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ?[0m [["post_type_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.7ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show_wrapper.html.erb (7.7ms)
+Completed 200 OK in 17ms (Views: 9.6ms | ActiveRecord: 1.0ms)
+ [1m[35mPulitzer::FreeFormSectionType Load (0.1ms)[0m SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.649933"], ["updated_at", "2016-05-23 18:08:22.649933"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?)[0m [["name", "main content"], ["post_type_id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mPulitzer::FreeFormSectionType Load (0.1ms)[0m [1mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.5ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form_fields.html.erb (1.2ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_form.html.erb (10.3ms)
+Completed 200 OK in 14ms (Views: 12.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.674645"], ["updated_at", "2016-05-23 18:08:22.674645"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by Pulitzer::FreeFormSectionTypesController#update as HTML
+ Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"}
+ [1m[35mPulitzer::FreeFormSectionType Load (0.1ms)[0m SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::Post Load (0.0ms)[0m [1mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ?[0m [["post_type_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/free_form_section_types/_show.html.erb (5.8ms)
+Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 0.4ms)
+ [1m[35mPulitzer::FreeFormSectionType Load (0.1ms)[0m SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "free as a bird"], ["plural", "t"], ["created_at", "2016-05-23 18:08:22.697288"], ["updated_at", "2016-05-23 18:08:22.697288"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?)[0m [["name", "main content"], ["post_type_id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mPulitzer::FreeFormSectionType Load (0.1ms)[0m [1mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mDELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::PostType Load (0.1ms)[0m [1mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPulitzer::Post Load (0.0ms)[0m SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_id", 1]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 8ms (Views: 3.6ms | ActiveRecord: 0.4ms)
+ [1m[36mPulitzer::FreeFormSectionType Load (0.1ms)[0m [1mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.718797"], ["updated_at", "2016-05-23 18:08:22.718797"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by Pulitzer::PartialsController#new as HTML
+ Parameters: {"partial"=>{"free_form_section_id"=>"1"}}
+ [1m[35mPulitzer::FreeFormSection Load (0.1ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms)
+ [1m[36mPulitzer::PostType Load (0.2ms)[0m [1mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ?[0m [["kind", 1]]
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]]
+ [1m[36mPulitzer::Layout Load (0.1ms)[0m [1mSELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ?[0m [["post_type_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_new.html.erb (15.7ms)
+Completed 200 OK in 37ms (Views: 19.6ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.772564"], ["updated_at", "2016-05-23 18:08:22.772564"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by Pulitzer::PartialsController#create as HTML
+ Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}}
+ [1m[35mPulitzer::FreeFormSection Load (0.0ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::FreeFormSection Load (0.1ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ?[0m [["free_form_section_id", 1]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::PostType Load (0.0ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::PostTypeContentElementType Load (0.1ms)[0m [1mSELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC[0m [["post_type_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms)
+ [1m[35mPulitzer::ContentElement Load (0.1ms)[0m SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["partial_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (3.0ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (10.1ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show_wrapper.html.erb (11.9ms)
+Completed 200 OK in 25ms (Views: 13.3ms | ActiveRecord: 0.9ms)
+ [1m[36mPulitzer::Partial Load (0.1ms)[0m [1mSELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1[0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?)[0m [["name", "free as a bird"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.810580"], ["updated_at", "2016-05-23 18:08:22.810580"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::FreeFormSection Load (0.0ms)[0m [1mSELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?)[0m [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Processing by Pulitzer::PartialsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mPulitzer::Partial Load (0.1ms)[0m [1mSELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_error_messages.erb (0.1ms)
+ [1m[36mPulitzer::Layout Load (0.1ms)[0m [1mSELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ?[0m [["post_type_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_form.html.erb (14.9ms)
+Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Left Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.841407"], ["updated_at", "2016-05-23 18:08:22.841407"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "Centered Text White BG"], ["plural", "t"], ["kind", 1], ["created_at", "2016-05-23 18:08:22.845895"], ["updated_at", "2016-05-23 18:08:22.845895"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::FreeFormSection Load (0.0ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ?[0m [["free_form_section_id", 1]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?) [["post_type_id", 2], ["free_form_section_id", 1], ["sort_order", 1]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Processing by Pulitzer::PartialsController#update as HTML
+ Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"}
+ [1m[35mPulitzer::Partial Load (0.1ms)[0m SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::PostType Load (0.1ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.1ms)
+ [1m[36mPulitzer::ContentElement Load (0.1ms)[0m [1mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC[0m [["partial_id", 1]]
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/content_elements/_partial_index.html.erb (1.3ms)
+ Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/partials/_show.html.erb (5.1ms)
+Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)
+ [1m[35mPulitzer::Partial Load (0.0ms)[0m SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::PostType Load (0.1ms)[0m [1mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:22.874576"], ["updated_at", "2016-05-23 18:08:22.874576"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]]
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Winterfell news 1"], ["post_type_id", 1], ["slug", "winterfell-news-1"], ["created_at", "2016-05-23 18:08:22.993296"], ["updated_at", "2016-05-23 18:08:22.993296"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:22.996515"], ["updated_at", "2016-05-23 18:08:22.996515"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:22.998686"], ["updated_at", "2016-05-23 18:08:22.998686"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 1"], ["created_at", "2016-05-23 18:08:23.012940"], ["updated_at", "2016-05-23 18:08:23.012940"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.015540"], ["updated_at", "2016-05-23 18:08:23.015540"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", "2016-05-23 18:08:23.019124"], ["updated_at", "2016-05-23 18:08:23.019124"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.020728"], ["updated_at", "2016-05-23 18:08:23.020728"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 3"], ["created_at", "2016-05-23 18:08:23.023427"], ["updated_at", "2016-05-23 18:08:23.023427"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.025010"], ["updated_at", "2016-05-23 18:08:23.025010"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.030714"], ["updated_at", "2016-05-23 18:08:23.030714"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Pulitzer::CloneVersion !!!
+/Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+ [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
+ [1m[36mPulitzer::ContentElement Load (0.1ms)[0m [1mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC[0m [["version_id", 2]]
+ [1m[35mPulitzer::ContentElementType Load (0.1ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.015540"], ["updated_at", "2016-05-23 18:08:23.015540"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.041417"], ["id", 4]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 2"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.020728"], ["updated_at", "2016-05-23 18:08:23.020728"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.047252"], ["id", 5]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.025010"], ["updated_at", "2016-05-23 18:08:23.025010"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.052176"], ["id", 6]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::FreeFormSection Load (0.1ms)[0m [1mSELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 2]]
+ [1m[35mPulitzer::PostTag Load (0.1ms)[0m SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.057797"], ["id", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
+ [1m[36m (1.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.068089"], ["updated_at", "2016-05-23 18:08:23.068089"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-2"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["slug", "winterfell-news-2"], ["created_at", "2016-05-23 18:08:23.070809"], ["updated_at", "2016-05-23 18:08:23.070809"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.072822"], ["updated_at", "2016-05-23 18:08:23.072822"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.075224"], ["updated_at", "2016-05-23 18:08:23.075224"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?)[0m [["name", "section A"], ["version_id", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?)[0m [["name", "section C"], ["version_id", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 2]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.082896"], ["updated_at", "2016-05-23 18:08:23.082896"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Pulitzer::CloneVersion !!!
+/Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 4]]
+ [1m[35mPulitzer::ContentElement Load (0.0ms)[0m SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
+ [1m[36mPulitzer::FreeFormSection Load (0.0ms)[0m [1mSELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?)[0m [["name", "section A"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::Partial Load (0.4ms)[0m [1mSELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC[0m [["free_form_section_id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ?[0m [["version_id", 3], ["id", 4]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Partial Load (0.1ms)[0m SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?)[0m [["name", "section C"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::Partial Load (0.0ms)[0m [1mSELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC[0m [["free_form_section_id", 3]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ?[0m [["version_id", 3], ["id", 6]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::PostTag Load (0.0ms)[0m [1mSELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ?[0m [["version_id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 0], ["updated_at", "2016-05-23 18:08:23.100240"], ["id", 3]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 3]]
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.109515"], ["updated_at", "2016-05-23 18:08:23.109515"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Winterfell news 3"], ["post_type_id", 1], ["slug", "winterfell-news-3"], ["created_at", "2016-05-23 18:08:23.112458"], ["updated_at", "2016-05-23 18:08:23.112458"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.115037"], ["updated_at", "2016-05-23 18:08:23.115037"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.118632"], ["updated_at", "2016-05-23 18:08:23.118632"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 4"], ["created_at", "2016-05-23 18:08:23.122468"], ["updated_at", "2016-05-23 18:08:23.122468"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.125037"], ["updated_at", "2016-05-23 18:08:23.125037"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 5"], ["created_at", "2016-05-23 18:08:23.130131"], ["updated_at", "2016-05-23 18:08:23.130131"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.131842"], ["updated_at", "2016-05-23 18:08:23.131842"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 6"], ["created_at", "2016-05-23 18:08:23.136467"], ["updated_at", "2016-05-23 18:08:23.136467"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.138579"], ["updated_at", "2016-05-23 18:08:23.138579"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.140837"], ["updated_at", "2016-05-23 18:08:23.140837"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Pulitzer::CloneVersion !!!
+/Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 4]]
+ [1m[35mPulitzer::ContentElement Load (0.1ms)[0m SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 4"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.125037"], ["updated_at", "2016-05-23 18:08:23.125037"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.150740"], ["id", 4]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Load (0.1ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.131842"], ["updated_at", "2016-05-23 18:08:23.131842"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.157364"], ["id", 5]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 6"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.138579"], ["updated_at", "2016-05-23 18:08:23.138579"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.162158"], ["id", 6]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::FreeFormSection Load (0.0ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
+ [1m[36mPulitzer::PostTag Load (0.0ms)[0m [1mSELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ?[0m [["version_id", 2]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 0], ["updated_at", "2016-05-23 18:08:23.164533"], ["id", 3]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElement Load (0.2ms)[0m [1mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1[0m [["version_id", 3]]
+ [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.174220"], ["updated_at", "2016-05-23 18:08:23.174220"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 7"], ["created_at", "2016-05-23 18:08:23.180601"], ["updated_at", "2016-05-23 18:08:23.180601"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.183392"], ["updated_at", "2016-05-23 18:08:23.183392"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 8"], ["created_at", "2016-05-23 18:08:23.186180"], ["updated_at", "2016-05-23 18:08:23.186180"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.187620"], ["updated_at", "2016-05-23 18:08:23.187620"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 9"], ["created_at", "2016-05-23 18:08:23.189770"], ["updated_at", "2016-05-23 18:08:23.189770"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.191156"], ["updated_at", "2016-05-23 18:08:23.191156"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::FreeFormSection Load (0.0ms)[0m [1mSELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_partials" ("post_type_id", "free_form_section_id", "sort_order") VALUES (?, ?, ?)[0m [["post_type_id", 1], ["free_form_section_id", 1], ["sort_order", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ?[0m [["partial_id", 1]]
+ [1m[35mPulitzer::PostType Load (0.0ms)[0m SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::PostTypeContentElementType Load (0.1ms)[0m [1mSELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC[0m [["post_type_id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 1"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.203243"], ["updated_at", "2016-05-23 18:08:23.203243"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 2"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.206514"], ["updated_at", "2016-05-23 18:08:23.206514"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("partial_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["partial_id", 1], ["label", "Slide 1 content element 3"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.210516"], ["updated_at", "2016-05-23 18:08:23.210516"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.216048"], ["updated_at", "2016-05-23 18:08:23.216048"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 10"], ["created_at", "2016-05-23 18:08:23.220141"], ["updated_at", "2016-05-23 18:08:23.220141"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.222439"], ["updated_at", "2016-05-23 18:08:23.222439"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 11"], ["created_at", "2016-05-23 18:08:23.225589"], ["updated_at", "2016-05-23 18:08:23.225589"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.226957"], ["updated_at", "2016-05-23 18:08:23.226957"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 12"], ["created_at", "2016-05-23 18:08:23.229104"], ["updated_at", "2016-05-23 18:08:23.229104"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_post_type_content_element_types" ("label", "content_element_type_id", "post_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_id", 1], ["created_at", "2016-05-23 18:08:23.230391"], ["updated_at", "2016-05-23 18:08:23.230391"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.0ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Winterfell news 4"], ["post_type_id", 1], ["slug", "winterfell-news-4"], ["created_at", "2016-05-23 18:08:23.235941"], ["updated_at", "2016-05-23 18:08:23.235941"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.238204"], ["updated_at", "2016-05-23 18:08:23.238204"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ?[0m [["version_id", 1]]
+ [1m[35mPulitzer::PostTypeContentElementType Load (0.1ms)[0m SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.1ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 4"], ["content_element_type_id", 1], ["post_type_content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.247069"], ["updated_at", "2016-05-23 18:08:23.247069"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Load (0.1ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["version_id", 1], ["label", "Slide 1 content element 5"], ["content_element_type_id", 2], ["post_type_content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.254310"], ["updated_at", "2016-05-23 18:08:23.254310"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 3]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("version_id", "label", "content_element_type_id", "post_type_content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["version_id", 1], ["label", "Slide 1 content element 6"], ["content_element_type_id", 3], ["post_type_content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.258797"], ["updated_at", "2016-05-23 18:08:23.258797"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::FreeFormSectionType Load (0.1ms)[0m SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]]
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.268012"], ["updated_at", "2016-05-23 18:08:23.268012"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?)[0m [["name", "Main Body"], ["post_type_id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?)[0m [["name", "Footer List"], ["post_type_id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.0ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "test"], ["post_type_id", 1], ["slug", "test"], ["created_at", "2016-05-23 18:08:23.276760"], ["updated_at", "2016-05-23 18:08:23.276760"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.278551"], ["updated_at", "2016-05-23 18:08:23.278551"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]]
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]]
+ [1m[36mPulitzer::PostType Load (0.1ms)[0m [1mSELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPulitzer::PostTypeContentElementType Load (0.1ms)[0m SELECT "pulitzer_post_type_content_element_types".* FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? ORDER BY "pulitzer_post_type_content_element_types"."id" ASC [["post_type_id", 1]]
+ [1m[36mPulitzer::FreeFormSectionType Load (0.1ms)[0m [1mSELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ?[0m [["post_type_id", 1]]
+ [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 1]]
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.299263"], ["updated_at", "2016-05-23 18:08:23.299263"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]]
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Winterfell news 5"], ["post_type_id", 1], ["slug", "winterfell-news-5"], ["created_at", "2016-05-23 18:08:23.303372"], ["updated_at", "2016-05-23 18:08:23.303372"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.306376"], ["updated_at", "2016-05-23 18:08:23.306376"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.308313"], ["updated_at", "2016-05-23 18:08:23.308313"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 13"], ["created_at", "2016-05-23 18:08:23.311685"], ["updated_at", "2016-05-23 18:08:23.311685"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.313515"], ["updated_at", "2016-05-23 18:08:23.313515"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 14"], ["created_at", "2016-05-23 18:08:23.317866"], ["updated_at", "2016-05-23 18:08:23.317866"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.319613"], ["updated_at", "2016-05-23 18:08:23.319613"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.2ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 15"], ["created_at", "2016-05-23 18:08:23.323319"], ["updated_at", "2016-05-23 18:08:23.323319"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.325656"], ["updated_at", "2016-05-23 18:08:23.325656"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.328651"], ["id", 2]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.330629"], ["updated_at", "2016-05-23 18:08:23.330629"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: 9d0bd738-fd1b-4d6b-b1e7-a025da378810) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1[0m [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mPulitzer::Post Load (0.1ms)[0m SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::CloneVersion !!!
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mPulitzer::ContentElement Load (0.1ms)[0m SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 7"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.313515"], ["updated_at", "2016-05-23 18:08:23.313515"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.344778"], ["id", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 8"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.319613"], ["updated_at", "2016-05-23 18:08:23.319613"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.350296"], ["id", 5]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 9"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.325656"], ["updated_at", "2016-05-23 18:08:23.325656"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mSQL (0.0ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.355244"], ["id", 6]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35mPulitzer::FreeFormSection Load (0.0ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mPulitzer::PostTag Load (0.0ms)[0m [1mSELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ?[0m [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 0], ["updated_at", "2016-05-23 18:08:23.357547"], ["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.69ms
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 1]]
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ?[0m [["version_id", 3]]
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.370959"], ["updated_at", "2016-05-23 18:08:23.370959"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.0ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["title", "Winterfell news 6"], ["post_type_id", 1], ["slug", "winterfell-news-6"], ["created_at", "2016-05-23 18:08:23.373813"], ["updated_at", "2016-05-23 18:08:23.373813"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.375707"], ["updated_at", "2016-05-23 18:08:23.375707"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.378027"], ["updated_at", "2016-05-23 18:08:23.378027"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 16"], ["created_at", "2016-05-23 18:08:23.380827"], ["updated_at", "2016-05-23 18:08:23.380827"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.382476"], ["updated_at", "2016-05-23 18:08:23.382476"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 17"], ["created_at", "2016-05-23 18:08:23.385798"], ["updated_at", "2016-05-23 18:08:23.385798"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.387310"], ["updated_at", "2016-05-23 18:08:23.387310"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 18"], ["created_at", "2016-05-23 18:08:23.390225"], ["updated_at", "2016-05-23 18:08:23.390225"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.391854"], ["updated_at", "2016-05-23 18:08:23.391854"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.394082"], ["id", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.395547"], ["updated_at", "2016-05-23 18:08:23.395547"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: c91fbe82-27ae-493d-9eb0-d5007ca0e687) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1[0m [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mPulitzer::Post Load (0.0ms)[0m SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::CloneVersion !!!
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mPulitzer::ContentElement Load (0.1ms)[0m SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.382476"], ["updated_at", "2016-05-23 18:08:23.382476"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.405354"], ["id", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.387310"], ["updated_at", "2016-05-23 18:08:23.387310"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mSQL (0.0ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.410362"], ["id", 5]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.391854"], ["updated_at", "2016-05-23 18:08:23.391854"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mSQL (0.0ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.414801"], ["id", 6]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35mPulitzer::FreeFormSection Load (0.1ms)[0m SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mPulitzer::PostTag Load (0.0ms)[0m [1mSELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ?[0m [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 0], ["updated_at", "2016-05-23 18:08:23.418275"], ["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.86ms
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mPulitzer::Post Load (0.0ms)[0m SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35mPulitzer::Post Load (0.0ms)[0m SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 3], ["updated_at", "2016-05-23 18:08:23.424802"], ["id", 3]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.426320"], ["updated_at", "2016-05-23 18:08:23.426320"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ffcdc922-329d-4053-97c4-99b4fd9fd530) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mPulitzer::Post Load (0.0ms)[0m [1mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1[0m [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::CloneVersion !!!
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mPulitzer::ContentElement Load (0.0ms)[0m [1mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC[0m [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 10"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.382476"], ["updated_at", "2016-05-23 18:08:23.382476"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mSQL (0.0ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 4], ["updated_at", "2016-05-23 18:08:23.434009"], ["id", 7]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mPulitzer::ContentElementType Load (0.0ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 11"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.387310"], ["updated_at", "2016-05-23 18:08:23.387310"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 4], ["updated_at", "2016-05-23 18:08:23.438836"], ["id", 8]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 12"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.391854"], ["updated_at", "2016-05-23 18:08:23.391854"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mSQL (0.0ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 4], ["updated_at", "2016-05-23 18:08:23.443297"], ["id", 9]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36mPulitzer::FreeFormSection Load (0.0ms)[0m [1mSELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mPulitzer::PostTag Load (0.0ms)[0m SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.445512"], ["id", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.41ms
+ [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]]
+ [1m[36mPulitzer::Version Load (0.1ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]]
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.456777"], ["updated_at", "2016-05-23 18:08:23.456777"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-7"]]
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 7"], ["post_type_id", 1], ["slug", "winterfell-news-7"], ["created_at", "2016-05-23 18:08:23.459367"], ["updated_at", "2016-05-23 18:08:23.459367"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.461236"], ["updated_at", "2016-05-23 18:08:23.461236"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.462764"], ["updated_at", "2016-05-23 18:08:23.462764"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 19"], ["created_at", "2016-05-23 18:08:23.465692"], ["updated_at", "2016-05-23 18:08:23.465692"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 1], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.467234"], ["updated_at", "2016-05-23 18:08:23.467234"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 20"], ["created_at", "2016-05-23 18:08:23.470554"], ["updated_at", "2016-05-23 18:08:23.470554"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 2], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.472096"], ["updated_at", "2016-05-23 18:08:23.472096"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 21"], ["created_at", "2016-05-23 18:08:23.474634"], ["updated_at", "2016-05-23 18:08:23.474634"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["content_element_type_id", 3], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.476056"], ["updated_at", "2016-05-23 18:08:23.476056"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ?[0m [["status", 1], ["updated_at", "2016-05-23 18:08:23.478417"], ["id", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("status", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["status", 4], ["post_id", 1], ["created_at", "2016-05-23 18:08:23.479954"], ["updated_at", "2016-05-23 18:08:23.479954"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cd16f517-0f3b-4bcb-9bd7-3129145a4eeb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Performing Pulitzer::CloneVersionJob from Inline(default) with arguments: gid://dummy/Pulitzer::Version/2
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mPulitzer::Post Load (0.0ms)[0m [1mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1[0m [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::CloneVersion !!!
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] /Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mPulitzer::ContentElement Load (0.0ms)[0m [1mSELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC[0m [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 13"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.467234"], ["updated_at", "2016-05-23 18:08:23.467234"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mSQL (0.0ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.488217"], ["id", 4]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mPulitzer::ContentElementType Load (0.1ms)[0m [1mSELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1[0m [["id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 14"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 2], ["created_at", "2016-05-23 18:08:23.472096"], ["updated_at", "2016-05-23 18:08:23.472096"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mSQL (0.0ms)[0m UPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.493519"], ["id", 5]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mPulitzer::ContentElementType Load (0.0ms)[0m SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 15"], ["title", "Night's Watch"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["image", nil], ["content_element_type_id", 3], ["created_at", "2016-05-23 18:08:23.476056"], ["updated_at", "2016-05-23 18:08:23.476056"]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mSQL (0.0ms)[0m [1mUPDATE "pulitzer_content_elements" SET "version_id" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ?[0m [["version_id", 3], ["updated_at", "2016-05-23 18:08:23.497908"], ["id", 6]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36mPulitzer::FreeFormSection Load (0.1ms)[0m [1mSELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ?[0m [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mPulitzer::PostTag Load (0.1ms)[0m SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.501655"], ["id", 3]]
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.28ms
+ [1m[35mPulitzer::Version Load (0.1ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mPulitzer::Post Load (0.0ms)[0m [1mSELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 18:08:23.507477"], ["id", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mPulitzer::Post Load (0.0ms)[0m SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35mPulitzer::Version Load (0.0ms)[0m SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1 [["post_id", 1], ["status", 0]]
+ [1m[36mPulitzer::Version Load (0.0ms)[0m [1mSELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT 1[0m [["post_id", 1], ["status", 0]]
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]]
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 22"], ["created_at", "2016-05-23 18:08:23.518227"], ["updated_at", "2016-05-23 18:08:23.518227"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 23"], ["created_at", "2016-05-23 18:08:23.528515"], ["updated_at", "2016-05-23 18:08:23.528515"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.2ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 24"], ["created_at", "2016-05-23 18:08:23.534124"], ["updated_at", "2016-05-23 18:08:23.534124"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 25"], ["created_at", "2016-05-23 18:08:23.538851"], ["updated_at", "2016-05-23 18:08:23.538851"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Video"], ["created_at", "2016-05-23 18:08:23.543859"], ["updated_at", "2016-05-23 18:08:23.543859"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 20"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.545547"], ["updated_at", "2016-05-23 18:08:23.545547"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::ContentElementType Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 18:08:23.551662"], ["updated_at", "2016-05-23 18:08:23.551662"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["label", "Slide 1 content element 21"], ["title", "Night's Watch"], ["body", "https://www.youtube.com/watch?v=yLisM2KPDIA"], ["content_element_type_id", 1], ["created_at", "2016-05-23 18:08:23.554387"], ["updated_at", "2016-05-23 18:08:23.554387"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 26"], ["created_at", "2016-05-23 18:08:23.566731"], ["updated_at", "2016-05-23 18:08:23.566731"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.2ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 27"], ["created_at", "2016-05-23 18:08:23.571953"], ["updated_at", "2016-05-23 18:08:23.571953"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Image"], ["created_at", "2016-05-23 18:08:23.577702"], ["updated_at", "2016-05-23 18:08:23.577702"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.8ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.722398"], ["updated_at", "2016-05-23 18:08:23.722398"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]]
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.7ms)[0m begin transaction
+ [1m[36m (0.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.744469"], ["updated_at", "2016-05-23 18:08:23.744469"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-9"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 9"], ["post_type_id", 1], ["slug", "winterfell-news-9"], ["created_at", "2016-05-23 18:08:23.747625"], ["updated_at", "2016-05-23 18:08:23.747625"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.751621"], ["updated_at", "2016-05-23 18:08:23.751621"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.756712"], ["updated_at", "2016-05-23 18:08:23.756712"]]
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-10"]]
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 10"], ["post_type_id", 1], ["slug", "winterfell-news-10"], ["created_at", "2016-05-23 18:08:23.760610"], ["updated_at", "2016-05-23 18:08:23.760610"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.763264"], ["updated_at", "2016-05-23 18:08:23.763264"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Post Exists (0.4ms)[0m SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" != 1) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "the-new-king-in-the-north"]]
+ [1m[36mSQL (0.2ms)[0m [1mUPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ?[0m [["title", "The new King in the North"], ["slug", "the-new-king-in-the-north"], ["updated_at", "2016-05-23 18:08:23.768446"], ["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Tag Exists (0.2ms)[0m SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "The north 1"], ["created_at", "2016-05-23 18:08:23.783157"], ["updated_at", "2016-05-23 18:08:23.783157"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.789325"], ["updated_at", "2016-05-23 18:08:23.789325"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-11"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 11"], ["post_type_id", 1], ["slug", "winterfell-news-11"], ["created_at", "2016-05-23 18:08:23.792975"], ["updated_at", "2016-05-23 18:08:23.792975"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.794688"], ["updated_at", "2016-05-23 18:08:23.794688"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.796534"], ["updated_at", "2016-05-23 18:08:23.796534"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.822162"], ["updated_at", "2016-05-23 18:08:23.822162"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::ContentElementType Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "Text 28"], ["created_at", "2016-05-23 18:08:23.825769"], ["updated_at", "2016-05-23 18:08:23.825769"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mPulitzer::Tag Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m commit transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mPulitzer::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mPulitzer::Tag Load (0.1ms)[0m [1mSELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "a"], ["created_at", "2016-05-23 18:08:23.881639"], ["updated_at", "2016-05-23 18:08:23.881639"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPulitzer::Tag Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1[0m
+ [1m[35mPulitzer::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.896165"], ["updated_at", "2016-05-23 18:08:23.896165"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-12"]]
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 12"], ["post_type_id", 1], ["slug", "winterfell-news-12"], ["created_at", "2016-05-23 18:08:23.900886"], ["updated_at", "2016-05-23 18:08:23.900886"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.903491"], ["updated_at", "2016-05-23 18:08:23.903491"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mPulitzer::Tag Exists (0.1ms)[0m SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "The north 3"], ["created_at", "2016-05-23 18:08:23.926371"], ["updated_at", "2016-05-23 18:08:23.926371"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "pulitzer_post_types" ("name", "plural", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["plural", "f"], ["created_at", "2016-05-23 18:08:23.928883"], ["updated_at", "2016-05-23 18:08:23.928883"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mPulitzer::Post Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1[0m [["slug", "winterfell-news-13"]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 13"], ["post_type_id", 1], ["slug", "winterfell-news-13"], ["created_at", "2016-05-23 18:08:23.931601"], ["updated_at", "2016-05-23 18:08:23.931601"]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["post_id", 1], ["created_at", "2016-05-23 18:08:23.933226"], ["updated_at", "2016-05-23 18:08:23.933226"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.935003"], ["updated_at", "2016-05-23 18:08:23.935003"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["label_id", 1], ["label_type", "Pulitzer::Tag"], ["version_id", 2], ["created_at", "2016-05-23 18:08:23.937791"], ["updated_at", "2016-05-23 18:08:23.937791"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ?[0m [["version_id", 2], ["label_type", "Pulitzer::Tag"]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? AND "pulitzer_post_tags"."label_id" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"], ["label_id", 1]]
+ [1m[36mPulitzer::PostTag Load (0.1ms)[0m [1mSELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ?[0m [["version_id", 2], ["label_type", "Pulitzer::Tag"]]
+ [1m[35mPulitzer::Tag Load (0.1ms)[0m SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m