spec/dummy/log/test.log in pulitzer-0.10.0 vs spec/dummy/log/test.log in pulitzer-0.10.1

- old
+ new

@@ -102658,5 +102658,1733 @@  (0.0ms) RELEASE SAVEPOINT active_record_1 Rendering text template Rendered text template (0.0ms) Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.6ms)  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.5ms) DELETE FROM "pulitzer_content_element_types"; +  (0.2ms) 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.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (1.6ms) 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.1ms) 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.2ms) DELETE FROM "pulitzer_versions"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.1ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) 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'; +  (1.2ms) 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.0ms) 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'; +  (1.5ms) DELETE FROM "pulitzer_free_form_sections"; +  (0.4ms) 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.9ms) DELETE FROM "pulitzer_layouts"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts'; +  (1.2ms) 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'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC], ["plural", false]] +  (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 ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (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", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 19:06:09 UTC], ["updated_at", 2017-02-27 19:06:09 UTC]] +  (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 [["version_id", 2]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.5ms) 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.7ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (1.6ms) 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.2ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (1.3ms) DELETE FROM "pulitzer_versions"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (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.3ms) DELETE FROM "pulitzer_post_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types'; +  (1.9ms) DELETE FROM "pulitzer_partials"; +  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (1.3ms) 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'; +  (1.3ms) 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'; +  (1.2ms) 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'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC], ["plural", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (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", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:44:14 UTC], ["updated_at", 2017-02-27 22:44:14 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.9ms) DELETE FROM "pulitzer_content_element_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (0.9ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.9ms) 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'; +  (0.9ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (0.9ms) DELETE FROM "pulitzer_versions"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.2ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.1ms) DELETE FROM "pulitzer_post_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types'; +  (1.0ms) 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'; +  (0.8ms) 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.8ms) DELETE FROM "pulitzer_free_form_sections"; +  (0.2ms) 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.9ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC], ["plural", false]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (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", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Exists (0.1ms) SELECT 1 AS one FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."name" = ? LIMIT ? [["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", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:44:46 UTC], ["updated_at", 2017-02-27 22:44:46 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (1.2ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) DELETE FROM "pulitzer_content_element_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (1.0ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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'; +  (0.8ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (0.7ms) 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.6ms) DELETE FROM "pulitzer_post_tags"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.0ms) 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'; +  (1.1ms) DELETE FROM "pulitzer_partials"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (0.9ms) 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.7ms) 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.9ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC], ["plural", false]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC], ["slug", "winterfell-news-1"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (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", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:46:03 UTC], ["updated_at", 2017-02-27 22:46:03 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 1]] + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.9ms) DELETE FROM "pulitzer_content_element_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (0.8ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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'; +  (0.9ms) DELETE FROM "pulitzer_post_type_content_element_types"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types'; +  (1.2ms) DELETE FROM "pulitzer_versions"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.0ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.0ms) DELETE FROM "pulitzer_post_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_types'; +  (0.8ms) 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'; +  (0.7ms) 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.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts'; +  (0.8ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC], ["plural", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (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", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:47:13 UTC], ["updated_at", 2017-02-27 22:47:13 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + Pulitzer::Version Load (0.2ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + 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", 1]] + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.3ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) DELETE FROM "pulitzer_content_element_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (0.9ms) 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'; +  (0.9ms) 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'; +  (0.8ms) DELETE FROM "pulitzer_post_type_content_element_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types'; +  (1.3ms) DELETE FROM "pulitzer_versions"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.0ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.3ms) DELETE FROM "pulitzer_post_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_types'; +  (0.8ms) 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'; +  (0.8ms) 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.8ms) 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.9ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC], ["plural", false]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC], ["slug", "winterfell-news-1"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (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", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:48:07 UTC], ["updated_at", 2017-02-27 22:48:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) DELETE FROM "pulitzer_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_content_element_types'; +  (0.8ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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.0ms) DELETE FROM "pulitzer_post_type_content_element_types"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types'; +  (1.1ms) DELETE FROM "pulitzer_versions"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.0ms) DELETE FROM "pulitzer_post_tags"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.0ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (0.8ms) 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.8ms) 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.9ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC], ["plural", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (1.2ms) 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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC], ["slug", "winterfell-news-2"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:49:47 UTC], ["updated_at", 2017-02-27 22:49:47 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (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 [["version_id", 2]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:50:19 UTC], ["updated_at", 2017-02-27 22:50:19 UTC]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:50:19 UTC], ["updated_at", 2017-02-27 22:50:19 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.5ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (1.1ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.9ms) DELETE FROM "pulitzer_content_element_types"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (0.8ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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'; +  (0.9ms) DELETE FROM "pulitzer_post_type_content_element_types"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_type_content_element_types'; +  (1.3ms) DELETE FROM "pulitzer_versions"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.0ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) 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.8ms) 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'; +  (0.8ms) 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.8ms) 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'; +  (1.0ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC], ["plural", false]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC], ["slug", "winterfell-news-2"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:52:11 UTC], ["updated_at", 2017-02-27 22:52:11 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) DELETE FROM "pulitzer_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_content_element_types'; +  (0.9ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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'; +  (0.9ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (0.9ms) DELETE FROM "pulitzer_versions"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (0.9ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.4ms) 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.8ms) 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'; +  (0.7ms) 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.7ms) 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.7ms) 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.7ms) 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'; +  (0.0ms) 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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC], ["plural", false]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC], ["plural", false]] +  (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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC], ["slug", "winterfell-news-2"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? [["post_id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.0ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 22:52:43 UTC], ["updated_at", 2017-02-27 22:52:43 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + 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]] +  (0.7ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.4ms) DELETE FROM "pulitzer_content_element_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.6ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_element_types'; +  (2.1ms) 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.5ms) 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.2ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (1.2ms) DELETE FROM "pulitzer_versions"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (0.9ms) 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'; +  (1.1ms) 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.0ms) 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'; +  (1.1ms) 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'; +  (1.1ms) 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'; +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC], ["plural", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (0.5ms) 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_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC], ["slug", "winterfell-news-2"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "A New Field for this Post Type"], ["version_id", 2], ["post_type_content_element_type_id", 1], ["content_element_type_id", 4], ["created_at", 2017-02-27 23:06:52 UTC], ["updated_at", 2017-02-27 23:06:52 UTC]] +  (0.0ms) 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_post_type_content_element_types"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:06:52 UTC], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_content_elements"."label" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2], ["label", "A changed label"]] + Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (0.6ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) DELETE FROM "pulitzer_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_content_element_types'; +  (0.9ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (1.0ms) DELETE FROM "pulitzer_tags"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_tags'; +  (1.2ms) 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'; +  (0.8ms) 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.1ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.1ms) DELETE FROM "pulitzer_post_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types'; +  (1.0ms) DELETE FROM "pulitzer_partials"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (0.8ms) DELETE FROM "pulitzer_free_form_section_types"; +  (0.2ms) 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.8ms) 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'; +  (2.9ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC], ["plural", false]] +  (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 ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.2ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (1.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC], ["slug", "winterfell-news-2"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_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.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) 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 ? [["id", 4], ["LIMIT", 1]] + SQL (0.3ms) INSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "A New Field for this Post Type"], ["version_id", 2], ["post_type_content_element_type_id", 1], ["content_element_type_id", 4], ["created_at", 2017-02-27 23:07:26 UTC], ["updated_at", 2017-02-27 23:07:26 UTC]] +  (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.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + 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]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_post_type_content_element_types"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:07:26 UTC], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_content_elements"."label" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2], ["label", "A changed label"]] + Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) DELETE FROM "pulitzer_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_content_element_types'; +  (0.8ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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'; +  (0.7ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (1.0ms) DELETE FROM "pulitzer_versions"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.3ms) DELETE FROM "pulitzer_post_tags"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.0ms) DELETE FROM "pulitzer_post_types"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types'; +  (1.2ms) DELETE FROM "pulitzer_partials"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (0.8ms) 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.8ms) 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.9ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC], ["slug", "winterfell-news-2"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_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.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) 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 ? [["id", 4], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "A New Field for this Post Type"], ["version_id", 2], ["post_type_content_element_type_id", 1], ["content_element_type_id", 4], ["created_at", 2017-02-27 23:08:07 UTC], ["updated_at", 2017-02-27 23:08:07 UTC]] +  (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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_post_type_content_element_types"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:08:07 UTC], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_content_elements"."label" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2], ["label", "A changed label"]] + Pulitzer::Partial Load (0.6ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + 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]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.8ms) DELETE FROM "pulitzer_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_content_element_types'; +  (1.0ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.9ms) 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'; +  (0.8ms) DELETE FROM "pulitzer_post_type_content_element_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_type_content_element_types'; +  (0.9ms) DELETE FROM "pulitzer_versions"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.5ms) DELETE FROM "pulitzer_post_tags"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.1ms) DELETE FROM "pulitzer_post_types"; +  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_types'; +  (1.0ms) 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'; +  (0.8ms) 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.8ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC], ["plural", false]] +  (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 ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC], ["slug", "winterfell-news-1"]] + SQL (0.1ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) 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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["name", "Text 2"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 2"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.1ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) commit transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "pulitzer_post_types" ("name", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC], ["slug", "winterfell-news-2"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_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.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::ContentElementType Load (0.3ms) SELECT "pulitzer_content_element_types".* FROM "pulitzer_content_element_types" WHERE "pulitzer_content_element_types"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "A New Field for this Post Type"], ["version_id", 2], ["post_type_content_element_type_id", 1], ["content_element_type_id", 4], ["created_at", 2017-02-27 23:09:27 UTC], ["updated_at", 2017-02-27 23:09:27 UTC]] +  (0.0ms) 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.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + 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]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_post_type_content_element_types"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:09:27 UTC], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."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 ? [["post_id", 1], ["status", 0], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_content_elements"."label" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2], ["label", "A New Field for this Post Type"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:09:27 UTC], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Partial Load (0.0ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + 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]] +  (0.5ms) rollback transaction +Creating scope :free_form. Overwriting existing method Pulitzer::ContentElement.free_form. + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (1.7ms) DELETE FROM "pulitzer_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_content_element_types'; +  (0.8ms) DELETE FROM "pulitzer_posts"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_posts'; +  (0.8ms) 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'; +  (0.8ms) 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'; +  (0.9ms) DELETE FROM "pulitzer_versions"; +  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_versions'; +  (1.1ms) DELETE FROM "pulitzer_post_tags"; +  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.3ms) DELETE FROM sqlite_sequence where name = 'pulitzer_post_tags'; +  (1.0ms) DELETE FROM "pulitzer_post_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_types'; +  (1.2ms) DELETE FROM "pulitzer_partials"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.2ms) DELETE FROM sqlite_sequence where name = 'pulitzer_partials'; +  (0.8ms) 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.8ms) 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.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_layouts'; +  (0.8ms) DELETE FROM "pulitzer_content_elements"; +  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence'; +  (0.1ms) DELETE FROM sqlite_sequence where name = 'pulitzer_content_elements'; +  (0.1ms) 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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC], ["plural", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Pulitzer::Post Exists (0.2ms) SELECT 1 AS one FROM "pulitzer_posts" WHERE ("pulitzer_posts"."id" IS NOT NULL) AND "pulitzer_posts"."slug" = ? LIMIT ? [["slug", "winterfell-news-1"], ["LIMIT", 1]] + SQL (0.2ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 1"], ["post_type_id", 1], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC], ["slug", "winterfell-news-1"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["name", "Text 1"], ["LIMIT", 1]] + SQL (0.3ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text 1"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 1"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 2"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 3"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) 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 ? [["id", 4], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "version_id", "post_type_content_element_type_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "A New Field for this Post Type"], ["version_id", 2], ["post_type_content_element_type_id", 1], ["content_element_type_id", 4], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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.0ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? ORDER BY "pulitzer_versions"."id" DESC LIMIT ? [["post_id", 1], ["status", 0], ["LIMIT", 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 [["version_id", 2]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_post_type_content_element_types" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_post_type_content_element_types"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:10:28 UTC], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::ContentElement Load (0.1ms) SELECT "pulitzer_content_elements".* FROM "pulitzer_content_elements" WHERE "pulitzer_content_elements"."version_id" = ? AND "pulitzer_content_elements"."label" = ? ORDER BY "pulitzer_content_elements"."id" ASC [["version_id", 2], ["label", "A New Field for this Post Type"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_content_elements" SET "label" = ?, "updated_at" = ? WHERE "pulitzer_content_elements"."id" = ? [["label", "A changed label"], ["updated_at", 2017-02-27 23:10:28 UTC], ["id", 4]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Partial Load (0.1ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] + Pulitzer::Version Load (0.1ms) SELECT "pulitzer_versions".* FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + 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]] +  (1.3ms) 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", "created_at", "updated_at", "plural") VALUES (?, ?, ?, ?) [["name", "Winterfell news 1"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC], ["plural", false]] +  (0.0ms) 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 ? [["slug", "winterfell-news-2"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_posts" ("title", "post_type_id", "created_at", "updated_at", "slug") VALUES (?, ?, ?, ?, ?) [["title", "Winterfell news 2"], ["post_type_id", 1], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC], ["slug", "winterfell-news-2"]] + SQL (0.2ms) INSERT INTO "pulitzer_versions" ("post_id", "created_at", "updated_at") VALUES (?, ?, ?) [["post_id", 1], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) 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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 4"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 1], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 5"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 2], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (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" = ? LIMIT ? [["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", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "pulitzer_content_elements" ("label", "body", "version_id", "content_element_type_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["label", "Slide 1 content element 6"], ["body", "I pledge my life and honor to the Night's Watch, for this night and all the nights to come"], ["version_id", 2], ["content_element_type_id", 3], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "pulitzer_versions" SET "status" = 2 WHERE "pulitzer_versions"."id" = ? [["id", 2]] + 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.0ms) SAVEPOINT active_record_1 + 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", 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", 1]] + Pulitzer::PostTag Load (0.1ms) SELECT "pulitzer_post_tags".* FROM "pulitzer_post_tags" WHERE "pulitzer_post_tags"."version_id" = ? [["version_id", 1]] + SQL (0.1ms) DELETE FROM "pulitzer_versions" WHERE "pulitzer_versions"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.1ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] + Pulitzer::PostType Load (0.3ms) SELECT "pulitzer_post_types".* FROM "pulitzer_post_types" WHERE "pulitzer_post_types"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 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" = ? LIMIT ? [["name", "Text"], ["LIMIT", 1]] + SQL (0.1ms) INSERT INTO "pulitzer_content_element_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Text"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "pulitzer_post_type_content_element_types" ("post_type_id", "content_element_type_id", "label", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["post_type_id", 1], ["content_element_type_id", 4], ["label", "A New Field for this Post Type"], ["created_at", 2017-02-27 23:10:28 UTC], ["updated_at", 2017-02-27 23:10:28 UTC]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Pulitzer::Post Load (0.0ms) SELECT "pulitzer_posts".* FROM "pulitzer_posts" WHERE "pulitzer_posts"."post_type_id" = ? [["post_type_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 ? [["post_id", 1], ["status", 0], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "pulitzer_versions" WHERE "pulitzer_versions"."post_id" = ? AND "pulitzer_versions"."status" = ? [["post_id", 1], ["status", 4]] + Pulitzer::Partial Load (0.2ms) SELECT "pulitzer_partials".* FROM "pulitzer_partials" WHERE "pulitzer_partials"."post_type_id" = ? [["post_type_id", 1]] +  (0.3ms) rollback transaction