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 @@  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]]  (0.1ms) 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]] Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.4ms) DELETE FROM "pulitzer_content_element_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.4ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (1.6ms) DELETE FROM "pulitzer_posts"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (1.1ms) DELETE FROM "pulitzer_tags"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags'; +  (1.1ms) DELETE FROM "pulitzer_post_type_content_element_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types'; +  (1.0ms) DELETE FROM "search_locations"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'search_locations'; +  (1.1ms) DELETE FROM "pulitzer_versions"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.0ms) DELETE FROM "pulitzer_content_elements"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (1.1ms) DELETE FROM "pulitzer_post_tags"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.1ms) DELETE FROM "pulitzer_post_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types'; +  (0.7ms) DELETE FROM "pulitzer_partials"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (1.1ms) DELETE FROM "pulitzer_free_form_section_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_section_types'; +  (0.9ms) DELETE FROM "pulitzer_free_form_sections"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_free_form_sections'; +  (0.8ms) DELETE FROM "pulitzer_layouts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts'; +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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.540373"], ["updated_at", "2016-05-23 18:08:22.540373"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::FreeFormSectionTypesController#new as HTML + Parameters: {"post_type_id"=>"1"} + Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::PostType Load (0.1ms) 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) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::FreeFormSectionTypesController#create as HTML + Parameters: {"free_form_section_type"=>{"post_type_id"=>"1", "name"=>"test sidebar"}} + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "pulitzer_free_form_section_types" ("post_type_id", "name") VALUES (?, ?) [["post_type_id", 1], ["name", "test sidebar"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["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) + Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" ORDER BY "pulitzer_free_form_section_types"."id" DESC LIMIT 1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::FreeFormSectionTypesController#edit as HTML + Parameters: {"id"=>"1"} + Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["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) +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.674645"], ["updated_at", "2016-05-23 18:08:22.674645"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::FreeFormSectionTypesController#update as HTML + Parameters: {"free_form_section_type"=>{"name"=>"edited name"}, "id"=>"1"} + Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_free_form_section_types" SET "name" = ? WHERE "pulitzer_free_form_section_types"."id" = ? [["name", "edited name"], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["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) + Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "main content"], ["post_type_id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::FreeFormSectionTypesController#destroy as HTML + Parameters: {"id"=>"1"} + Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Post Load (0.0ms) 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) + Pulitzer::FreeFormSectionType Load (0.1ms) SELECT "pulitzer_free_form_section_types".* FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.718797"], ["updated_at", "2016-05-23 18:08:22.718797"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::PartialsController#new as HTML + Parameters: {"partial"=>{"free_form_section_id"=>"1"}} + Pulitzer::FreeFormSection Load (0.1ms) 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) + Pulitzer::PostType Load (0.2ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."kind" = ? [["kind", 1]] + Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["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) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.772564"], ["updated_at", "2016-05-23 18:08:22.772564"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::PartialsController#create as HTML + Parameters: {"partial"=>{"post_type_id"=>"1", "free_form_section_id"=>"1"}} + Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] + SQL (0.1ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::PostTypeContentElementType Load (0.1ms) 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]] + Rendered /Users/eric/projects/pulitzer/app/views/pulitzer/shared/_drag_handle.html.erb (0.3ms) + Pulitzer::ContentElement Load (0.1ms) 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) + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" ORDER BY "pulitzer_partials"."id" DESC LIMIT 1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] + SQL (0.1ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::PartialsController#edit as HTML + Parameters: {"id"=>"1"} + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::PostType Load (0.1ms) 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) + Pulitzer::Layout Load (0.1ms) SELECT "pulitzer_layouts".* FROM "pulitzer_layouts" WHERE "pulitzer_layouts"."post_type_id" = ? [["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) +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "pulitzer_post_types" ("name", "plural", "kind", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "free as a bird"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.845895"], ["updated_at", "2016-05-23 18:08:22.845895"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] + SQL (0.1ms) 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]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Processing by Pulitzer::PartialsController#update as HTML + Parameters: {"partial"=>{"post_type_id"=>"1"}, "id"=>"1"} + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_partials" SET "post_type_id" = ? WHERE "pulitzer_partials"."id" = ? [["post_type_id", 1], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::PostType Load (0.1ms) 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) + Pulitzer::ContentElement Load (0.1ms) 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 (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) + Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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:22.874576"], ["updated_at", "2016-05-23 18:08:22.874576"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-1"]] + SQL (0.5ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:22.998686"], ["updated_at", "2016-05-23 18:08:22.998686"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 1' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", "2016-05-23 18:08:23.012940"], ["updated_at", "2016-05-23 18:08:23.012940"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 2' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 3' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 3"], ["created_at", "2016-05-23 18:08:23.023427"], ["updated_at", "2016-05-23 18:08:23.023427"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Pulitzer::CloneVersion !!! +/Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec + Pulitzer::Version Load (0.1ms) 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]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] + Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.041417"], ["id", 4]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.052176"], ["id", 6]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.057797"], ["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-2"]] + SQL (0.4ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.072822"], ["updated_at", "2016-05-23 18:08:23.072822"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section A"], ["version_id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section B"], ["version_id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "section C"], ["version_id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.082896"], ["updated_at", "2016-05-23 18:08:23.082896"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Pulitzer::CloneVersion !!! +/Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::ContentElement Load (0.0ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] + Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section A"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Partial Load (0.4ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section B"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Partial Load (0.1ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 5]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "section C"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? ORDER BY "pulitzer_partials"."sort_order" ASC [["free_form_section_id", 3]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_free_form_sections" SET "version_id" = ? WHERE "pulitzer_free_form_sections"."id" = ? [["version_id", 3], ["id", 6]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.100240"], ["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 3]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.109515"], ["updated_at", "2016-05-23 18:08:23.109515"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-3"]] + SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.118632"], ["updated_at", "2016-05-23 18:08:23.118632"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 4' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 4"], ["created_at", "2016-05-23 18:08:23.122468"], ["updated_at", "2016-05-23 18:08:23.122468"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 5' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_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"], ["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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 6' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 6"], ["created_at", "2016-05-23 18:08:23.136467"], ["updated_at", "2016-05-23 18:08:23.136467"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.140837"], ["updated_at", "2016-05-23 18:08:23.140837"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Pulitzer::CloneVersion !!! +/Users/eric/.rvm/gems/ruby-2.2.3/bin/rspec + Pulitzer::Version Load (0.1ms) 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]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2]] + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_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"], ["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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.157364"], ["id", 5]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_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"], ["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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] + Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.164533"], ["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::ContentElement Load (0.2ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? ORDER BY "pulitzer_content_elements"."id" ASC LIMIT 1 [["version_id", 3]] + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 7' LIMIT 1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 8' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 8"], ["created_at", "2016-05-23 18:08:23.186180"], ["updated_at", "2016-05-23 18:08:23.186180"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 9' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_post_types" SET "kind" = 1 WHERE "pulitzer_post_types"."id" = ? [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name") VALUES (?) [["name", "test"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SELECT MAX("pulitzer_partials"."sort_order") FROM "pulitzer_partials" WHERE "pulitzer_partials"."free_form_section_id" = ? [["free_form_section_id", 1]] + SQL (0.1ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."partial_id" = ? [["partial_id", 1]] + Pulitzer::PostType Load (0.0ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::PostTypeContentElementType Load (0.1ms) 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]] +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) 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.216048"], ["updated_at", "2016-05-23 18:08:23.216048"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 10' LIMIT 1 + SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 10"], ["created_at", "2016-05-23 18:08:23.220141"], ["updated_at", "2016-05-23 18:08:23.220141"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 11' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 12' LIMIT 1 + SQL (0.0ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 12"], ["created_at", "2016-05-23 18:08:23.229104"], ["updated_at", "2016-05-23 18:08:23.229104"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_type_content_element_types" WHERE "pulitzer_post_type_content_element_types"."post_type_id" = ? [["post_type_id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-4"]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] + Pulitzer::PostTypeContentElementType Load (0.1ms) 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]] + Pulitzer::Version Load (0.1ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] + SQL (0.2ms) 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"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.1ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] + SQL (0.1ms) 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 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::FreeFormSectionType Load (0.1ms) 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]] + Pulitzer::Version Load (0.1ms) 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]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 1]] +  (0.6ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Main Body"], ["post_type_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Side Bar"], ["post_type_id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_section_types" ("name", "post_type_id") VALUES (?, ?) [["name", "Footer List"], ["post_type_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "test"]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_section_types" WHERE "pulitzer_free_form_section_types"."post_type_id" = ? [["post_type_id", 1]] + Pulitzer::Version Load (0.1ms) 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]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::PostTypeContentElementType Load (0.1ms) 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]] + Pulitzer::FreeFormSectionType Load (0.1ms) 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]] + Pulitzer::Version Load (0.1ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Main Body"], ["version_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Side Bar"], ["version_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_free_form_sections" ("name", "version_id") VALUES (?, ?) [["name", "Footer List"], ["version_id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.1ms) 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]] +  (0.0ms) SELECT COUNT(*) FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 1]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.299263"], ["updated_at", "2016-05-23 18:08:23.299263"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-5"]] + SQL (0.4ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.308313"], ["updated_at", "2016-05-23 18:08:23.308313"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 13' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 13"], ["created_at", "2016-05-23 18:08:23.311685"], ["updated_at", "2016-05-23 18:08:23.311685"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 14' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_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"], ["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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 15' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 15"], ["created_at", "2016-05-23 18:08:23.323319"], ["updated_at", "2016-05-23 18:08:23.323319"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.328651"], ["id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.330629"], ["updated_at", "2016-05-23 18:08:23.330629"]] +  (0.1ms) 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] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["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] Pulitzer::Post Load (0.1ms) 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] Pulitzer::Version Load (0.1ms) 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] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElement Load (0.1ms) 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] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.1ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_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"], ["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]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElementType Load (0.0ms) 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]  (0.1ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) 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]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) 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.350296"], ["id", 5]] +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_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"], ["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]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.0ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Pulitzer::FreeFormSection Load (0.0ms) 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] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.357547"], ["id", 3]] +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [9d0bd738-fd1b-4d6b-b1e7-a025da378810] Performed Pulitzer::CloneVersionJob from Inline(default) in 24.69ms + Pulitzer::Version Load (0.1ms) 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]] + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::Version Load (0.1ms) 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]] + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.370959"], ["updated_at", "2016-05-23 18:08:23.370959"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-6"]] + SQL (0.3ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.378027"], ["updated_at", "2016-05-23 18:08:23.378027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 16' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 16"], ["created_at", "2016-05-23 18:08:23.380827"], ["updated_at", "2016-05-23 18:08:23.380827"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 17' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_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"], ["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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 18' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 18"], ["created_at", "2016-05-23 18:08:23.390225"], ["updated_at", "2016-05-23 18:08:23.390225"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.394082"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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.395547"], ["updated_at", "2016-05-23 18:08:23.395547"]] +  (0.0ms) 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] Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["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] Pulitzer::Post Load (0.0ms) 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] Pulitzer::Version Load (0.0ms) 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] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElement Load (0.1ms) 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] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 1]] +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.1ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) 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] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElementType Load (0.0ms) 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]  (0.1ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.0ms) 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.410362"], ["id", 5]] +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 3]] +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) 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] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.0ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Pulitzer::FreeFormSection Load (0.1ms) 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] Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 2]] +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 0], ["updated_at", "2016-05-23 18:08:23.418275"], ["id", 3]] +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [c91fbe82-27ae-493d-9eb0-d5007ca0e687] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.86ms + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Version Load (0.0ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 18:08:23.424802"], ["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: ffcdc922-329d-4053-97c4-99b4fd9fd530) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 +[ActiveJob] Pulitzer::Version Load (0.0ms) 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] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["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] Pulitzer::Version Load (0.0ms) 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] Pulitzer::ContentElement Load (0.0ms) 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] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElementType Load (0.0ms) 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]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.0ms) 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.434009"], ["id", 7]] +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElementType Load (0.0ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) 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] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::ContentElementType Load (0.0ms) 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]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.0ms) 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.443297"], ["id", 9]] +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::FreeFormSection Load (0.0ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Pulitzer::PostTag Load (0.0ms) 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]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [ffcdc922-329d-4053-97c4-99b4fd9fd530] Performed Pulitzer::CloneVersionJob from Inline(default) in 20.41ms + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 3]] + Pulitzer::Version Load (0.1ms) 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]] + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 4]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-7"]] + SQL (0.3ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.461236"], ["updated_at", "2016-05-23 18:08:23.461236"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 19' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_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"], ["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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 20' LIMIT 1 + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 20"], ["created_at", "2016-05-23 18:08:23.470554"], ["updated_at", "2016-05-23 18:08:23.470554"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 21' LIMIT 1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "version_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"], ["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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 1], ["updated_at", "2016-05-23 18:08:23.478417"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] Enqueued Pulitzer::CloneVersionJob (Job ID: cd16f517-0f3b-4bcb-9bd7-3129145a4eeb) to Inline(default) with arguments: gid://dummy/Pulitzer::Version/2 +[ActiveJob] Pulitzer::Version Load (0.0ms) 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] Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["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] Pulitzer::Version Load (0.1ms) 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] Pulitzer::ContentElement Load (0.0ms) 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] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElementType Load (0.0ms) 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]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.0ms) 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.488217"], ["id", 4]] +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElementType Load (0.1ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT 1 [["id", 2]] +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.1ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "image", "content_element_type_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"], ["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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.0ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::ContentElementType Load (0.0ms) 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]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) 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]  (0.0ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.0ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.0ms) 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.497908"], ["id", 6]] +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::FreeFormSection Load (0.1ms) SELECT "pulitzer_free_form_sections".* FROM "pulitzer_free_form_sections" WHERE "pulitzer_free_form_sections"."version_id" = ? [["version_id", 2]] +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Pulitzer::PostTag Load (0.1ms) 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]  (0.1ms) SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] SQL (0.1ms) 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]  (0.1ms) RELEASE SAVEPOINT active_record_1 +[ActiveJob] [Pulitzer::CloneVersionJob] [cd16f517-0f3b-4bcb-9bd7-3129145a4eeb] Performed Pulitzer::CloneVersionJob from Inline(default) in 23.28ms + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Version Load (0.0ms) 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = ?, "updated_at" = ? WHERE "pulitzer_versions"."id" = ? [["status", 3], ["updated_at", "2016-05-23 18:08:23.507477"], ["id", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::Version Load (0.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT 1 [["id", 2]] + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT 1 [["id", 1]] + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::Version Load (0.0ms) 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]] + Pulitzer::Version Load (0.0ms) 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]] +  (0.0ms) SELECT COUNT(*) FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? [["version_id", 3]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 22' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 22"], ["created_at", "2016-05-23 18:08:23.518227"], ["updated_at", "2016-05-23 18:08:23.518227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 23' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 23"], ["created_at", "2016-05-23 18:08:23.528515"], ["updated_at", "2016-05-23 18:08:23.528515"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 24' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 24"], ["created_at", "2016-05-23 18:08:23.534124"], ["updated_at", "2016-05-23 18:08:23.534124"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 25' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 25"], ["created_at", "2016-05-23 18:08:23.538851"], ["updated_at", "2016-05-23 18:08:23.538851"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Video"], ["created_at", "2016-05-23 18:08:23.543859"], ["updated_at", "2016-05-23 18:08:23.543859"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Video' LIMIT 1 + SQL (0.3ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_content_elements" ("label", "title", "body", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 26' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 26"], ["created_at", "2016-05-23 18:08:23.566731"], ["updated_at", "2016-05-23 18:08:23.566731"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 27' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 27"], ["created_at", "2016-05-23 18:08:23.571953"], ["updated_at", "2016-05-23 18:08:23.571953"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Image' LIMIT 1 + SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Image"], ["created_at", "2016-05-23 18:08:23.577702"], ["updated_at", "2016-05-23 18:08:23.577702"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-8"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) rollback transaction +  (0.7ms) begin transaction +  (0.2ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-9"]] + SQL (0.4ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.751621"], ["updated_at", "2016-05-23 18:08:23.751621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-10"]] + SQL (0.3ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.763264"], ["updated_at", "2016-05-23 18:08:23.763264"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.4ms) 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"]] + SQL (0.2ms) UPDATE "pulitzer_posts" SET "title" = ?, "slug" = ?, "updated_at" = ? WHERE "pulitzer_posts"."id" = ? [["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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 1' LIMIT 1 + SQL (0.3ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 1"], ["created_at", "2016-05-23 18:08:23.783157"], ["updated_at", "2016-05-23 18:08:23.783157"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-11"]] + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.794688"], ["updated_at", "2016-05-23 18:08:23.794688"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) rollback transaction +  (0.4ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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.822162"], ["updated_at", "2016-05-23 18:08:23.822162"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = 'Text 28' LIMIT 1 + SQL (0.4ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 28"], ["created_at", "2016-05-23 18:08:23.825769"], ["updated_at", "2016-05-23 18:08:23.825769"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction + Pulitzer::Tag Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 2' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction + Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" IS NULL LIMIT 1 +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction + Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" ORDER BY "pulitzer_tags"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "a"], ["created_at", "2016-05-23 18:08:23.881639"], ["updated_at", "2016-05-23 18:08:23.881639"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'a' LIMIT 1 + Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'A' LIMIT 1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-12"]] + SQL (0.4ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.903491"], ["updated_at", "2016-05-23 18:08:23.903491"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Tag Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_tags" WHERE "pulitzer_tags"."name" = 'The north 3' LIMIT 1 + SQL (0.2ms) INSERT INTO "pulitzer_tags" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "The north 3"], ["created_at", "2016-05-23 18:08:23.926371"], ["updated_at", "2016-05-23 18:08:23.926371"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.0ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT 1 [["slug", "winterfell-news-13"]] + SQL (0.1ms) 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"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", "2016-05-23 18:08:23.933226"], ["updated_at", "2016-05-23 18:08:23.933226"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) 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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_tags" ("label_id", "label_type", "version_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["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"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] +  (0.1ms) 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]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? AND "pulitzer_post_tags"."label_type" = ? [["version_id", 2], ["label_type", "Pulitzer::Tag"]] + Pulitzer::Tag Load (0.1ms) SELECT "pulitzer_tags".* FROM "pulitzer_tags" WHERE "pulitzer_tags"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction